Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Error assigning premium capacity to workspace - PowerBINotAuthorizedException

Hi all,    I am encountering an error while attempting to assign premium capacity to the workspace in Power BI. I am using a service principal admin app with Python and REST API to create the works...
  • Anonymous's avatar
    Anonymous
    2 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!