Forum Discussion
Power BI App Deployment with Azure DevOps
- 1 year ago
Hello camelopardkh,
Thank you for your follow-up.you can automate deploying specific reports and updating the associated app by combining Power BI REST APIs with ADO pipelines. consider below points:
- Store your .pbix or .pbip files in an ADO Git repository (master branch). Use an ADO pipeline to selectively upload a specific report to your Power BI workspace using the POST /imports API. This allows you to target individual reports rather than moving all workspace content.
- After uploading the report, use the POST /groups/{groupId}/apps API to programmatically publish or update the app. This API updates the app’s content based on the workspace, including your newly deployed report. You can trigger this in ADO using a task that calls the API with a service principal for authentication.
- Use a service principal for secure, non-interactive access to Power BI APIs. Configure it in ADO with credentials stored securely in Azure Key Vault.
This approach avoids manual app updates and aligns with your ADO workflow for selective report deployment.
If you have any further questions, please don't hesitate to contact us through the community. We are happy to assist you.
Thank you.
Hi v-ssriganesh,
We don't want to update the app manually, this is the main topic of this thread. I saw that there are some options to automate it via Deployment Pipelines of Power BI service, but we cannot integrate it with our current solution in Azure DevOps where we deploy specific reports from master rather than moving all the reports from one env to another (as it is the case in Deployment Pipelines). Do you know if there are some tricks to make it work with ADO? Thank you
- v-ssriganesh1 year agoCommunity Support
Hello camelopardkh,
Thank you for your follow-up.you can automate deploying specific reports and updating the associated app by combining Power BI REST APIs with ADO pipelines. consider below points:
- Store your .pbix or .pbip files in an ADO Git repository (master branch). Use an ADO pipeline to selectively upload a specific report to your Power BI workspace using the POST /imports API. This allows you to target individual reports rather than moving all workspace content.
- After uploading the report, use the POST /groups/{groupId}/apps API to programmatically publish or update the app. This API updates the app’s content based on the workspace, including your newly deployed report. You can trigger this in ADO using a task that calls the API with a service principal for authentication.
- Use a service principal for secure, non-interactive access to Power BI APIs. Configure it in ADO with credentials stored securely in Azure Key Vault.
This approach avoids manual app updates and aligns with your ADO workflow for selective report deployment.
If you have any further questions, please don't hesitate to contact us through the community. We are happy to assist you.
Thank you.