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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
jessegorter
Helper I
Helper I

update app via powershell

hi,

 

is it possible to update an app via powershell? We use service principals for automation, but https://learn.microsoft.com/en-us/rest/api/power-bi/apps/get-app is not supported for service principals. Is there a way?

I deploy my models via the xmla endpoint, and reports via the rest api and the MicrosoftPowerBIMgmt powershell. But to update an app seems to be impossible?

 

 

3 REPLIES 3
powerbi_jenhen
Resolver II
Resolver II

If you receive a 401, make sure your azure app permissions have Admin consent removed: Solved: Re: Admin API's and Service Principal Authenticati... - Microsoft Power BI Community

powerbi_jenhen
Resolver II
Resolver II

You can use GetAppsAsAdmin using a service principal to detect whether the workspace has a published app or not (Admin - Apps GetAppsAsAdmin - REST API (Power BI Power BI REST APIs) | Microsoft Learn)

 

You can then use the Pipelines/Deploy All/updateAppSettings to update the app if it exists: Solved: Re: Power BI Rest API to Update Workspace App - Microsoft Power BI Community

lbendlin
Super User
Super User

Updating the app also includes an AD check on all the audience members and will fail if one of them has become invalid. That may be one of the reasons.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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