Forum Discussion
Error assigning premium capacity to workspace - PowerBINotAuthorizedException
- Anonymous2 years ago
Greg_Deckler Anonymous : Thank you all for the response. I have successfully resolved the issue by ensuring that the premium capacity had the necessary contributor permissions. After doing so, my Python code was able to assign the capacity. I would like to express my thank you to you both.
Screenshot attached here :
To assign the necessary permissions, go to Power BI Admin, navigate to Capacity, and select the Premium Capacity and then go to the Contributor option. In this step, make sure to specify the correct security group name, as we had security groups in place..
In the future, if anyone works with a Service Principal Admin, I would recommend considering this parameter as well.
Thank you!
Hi Greg_Deckler
Thanks for your reply. I am using REST API to create workspace and assign capacities. As you have mentioned I have already added the service principal to my workspace (as admin). Regarding the service principal having permissions to assign capacity or not, how can I check this ? Where can I assign this permission ?
Thanks
Anonymous These are the instructions found here: Manage your Fabric capacity - Microsoft Fabric | Microsoft Learn
To add or remove admins in a Fabric capacity, follow these steps:
-
In the Capacity settings page, select Fabric Capacity.
-
From the list of capacities, select the capacity you want to make changes to.
-
In the capacity's setting page, from the Details tab, select expand Admin permissions.
-
Add or remove admins from the text box.
-
Select Apply.
To add or remove admins in a Power BI Premium capacity, follow these steps:
-
In the Capacity settings page, select Power BI Premium.
-
From the list of capacities, select the capacity you want to make changes to.
-
In the capacity's setting page, from the Details tab, select expand Admin permissions.
-
Add or remove admins from the text box.
-
Select Apply.