Forum Discussion
BoNDoK00
3 years agoFrequent Visitor
PowerBINotAuthorizedException ServicePrincipal despite all access done
I want to use Power BI PowerShell module. This is what I have done: 1. I got Power BI Moduel installed in PowerShell 2. I got an app registered with the following permissions: (Thi...
- Anonymous3 years ago
Hi BoNDoK00 , it looks like you are trying to connect using a Service Principal to use the Power BI Admin Rest API. There is an important part in the documentation: Enable service principal authentication for read-only admin APIs - Power BI | Microsoft Learn
If you delete all the Power BI API setting in the Azure Portal the "PowerBINotAuthorizedException" should be avoided.
halamsjah
3 years agoRegular Visitor
I have similar issue and got the same error but only for some workspaces. For most of the other workspaces, the powershell script works fine.