Forum Discussion
112JKJKSD
3 years agoNew Member
Get the 403 when using auth token authenticate for the PowerBI REST API
I want to use token authenticate for the Power BI REST APIs. Now I have a service principal, then I using the az command line to login in and generate the token: az login --service-principal ...
- 3 years ago
Thanks for your reply. I have already check those documents. And I have resolved this issue by adding --resource https://analysis.windows.net/powerbi/api to the az account get-access-token command.
112JKJKSD
3 years agoNew Member
Thanks for your reply. I have already check those documents. And I have resolved this issue by adding --resource https://analysis.windows.net/powerbi/api to the az account get-access-token command.
Anonymous
3 years agoNot applicable
Hi 112JKJKSD ,
It's glad to hear that your problem has been resolved. And thanks for sharing your solution here. Could you please mark your post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.
Best Regards