Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
Last one month i am automating the power shell script using azure service principal to extract power bi workspace list. I am getting the output in csv file but today when i run the script i am getting the below error. Could please any one help me on this issue.
Thanks in advance.
Hi @Anonymous,
Please check these info.
1 Check in Azure portal whether service principal is expired
2 Check in Admin portal whether Allow service principal to use Power BI APIs is disabled
If 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 let me know how. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
Hi @v-cazheng-msft,
Thanks for responding. I check the above two options in Azure portal, Service principal will expire in december 2022 and Allow service principal to use Power BI APIs is also enabled in Admin portal.