Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
Am trying to create a PowerBI workspace using a python script.
I have created an app registration in Azure and it has API permissions - Workspace.ReadWrite.All
I have also enabled Workspace creation in PowerBI Admin portal.
However, when I use this App registration(TenantID, ClientID, and ClientSecret) to authenticate and create workspace, it errors out.
The error is (Authentication token is getting generated but workspace creation fails)
Failed to create workspace. Status code: 403
Error message: b'{"error":{"code":"InvalidRequest","message":"WorkspaceV2 creation is disabled on tenant level"}}'
Am I missing any other step or permission ? Any help on this is highly appreciated !
Thanks in advance.
Solved! Go to Solution.
Hi @Anonymous ,
According to the error message, you need to contact your administrator to make sure that your account has permission to create workspaces and that the “Create workspace” option is turned on.
Refer to:
Workspace admin settings - Microsoft Fabric | Microsoft Learn
What is the Microsoft Fabric admin portal? - Microsoft Fabric | Microsoft Learn
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
According to the error message, you need to contact your administrator to make sure that your account has permission to create workspaces and that the “Create workspace” option is turned on.
Refer to:
Workspace admin settings - Microsoft Fabric | Microsoft Learn
What is the Microsoft Fabric admin portal? - Microsoft Fabric | Microsoft Learn
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |