Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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?
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
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
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |