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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Helper I
Helper I

update app via powershell



is it possible to update an app via powershell? We use service principals for automation, but 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?



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

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

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

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.