Forum Discussion
How to authenticate using a Service Principal?
- Anonymous1 year ago
Thanks for the reply from arvindsingh802.
Hi tcboeira ,
According to your error information, unauthorized is usually a result of not properly configuring permissions when using the service body or not requesting the corresponding token correctly, you can follow the steps in the following document to configure your Apps, making sure that the steps are configured correctly:
For the issue that Operation returned an invalid status code 'Unauthorized', I found the type of issues for you, you can check this out:
Solved: Re: Unauthorised when using Get-PowerBIWorkspace - Microsoft Fabric Community
Solved: Service Principle cannot Get-PowerBIWorkspace - Microsoft Fabric Community
Best Regards,
Zhu
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Please confirm if you are following all the setps mentioned in this article
https://stackoverflow.com/questions/77939584/how-to-do-the-authentication-to-run-power-bi-rest-api-in-an-azure-function-powe
Yes yes yes... I'm with them indeed...
- Anonymous1 year agoNot applicable
Thanks for the reply from arvindsingh802.
Hi tcboeira ,
According to your error information, unauthorized is usually a result of not properly configuring permissions when using the service body or not requesting the corresponding token correctly, you can follow the steps in the following document to configure your Apps, making sure that the steps are configured correctly:
For the issue that Operation returned an invalid status code 'Unauthorized', I found the type of issues for you, you can check this out:
Solved: Re: Unauthorised when using Get-PowerBIWorkspace - Microsoft Fabric Community
Solved: Service Principle cannot Get-PowerBIWorkspace - Microsoft Fabric Community
Best Regards,
Zhu
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!