Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Automation of power shell script using azure service principal

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.

 

 

Ynr0225_1-1653330452623.png

 

Thanks in advance.

 

 

2 REPLIES 2
v-cazheng-msft
Community Support
Community Support

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

Anonymous
Not applicable

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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.