This article will guide you through the implementation of CI/CD pipelines using Azure DevOps. This will enable you to deploy your local report to your Power BI service automatically. To show you how it works, I will use an extension called Power BI Actions, available for free on the Visual Studio marketplace.
Azure Portal
Create a new app registration
To access Power BI service content and APIs, you need to register an application that will authenticate against your Azure Active Directory. To do so, follow these instructions:
- Sign in to the Azure portal.
- Select Azure Active Directory and then App Registration.
- Click the New Registration.

Provide a name that describes your application’s purpose, select a supported Account type, and click on Register.

Once the registration is completed, you will be redirected to the app overview page. Copy the application ID’s value as you will need to specify this later in Azure DevOps.

Select Certificate & Secrets tab, generate a new client secret, and copy its value.

You need to give some permission to your app to conclude the configuration of your application.
- Click on the App permission tab and then Add permission.
- Select Application permissions.
- Click Power BI services.
- Check the Tenant.ReadAll and Tenant.ReadWriteAll checkbox.
- Click add permission to confirm your updates.

Power BI
Setting up the tenant
The next step is to configure your Power BI,
- Sign in to the Power BI portal.
- Click the gear icon on the top right and select Admin portal.
- Select the Tenant settings tab and allow service principals to use Power BI APIs

Configure a workspace
Now create the workspace where your pipeline will publish the reports and grant permission to your Azure AD App to do this,
- Select Workspaces tab.
- Click the three vertical dots on the right of your new workspace.
- Click Workspace access.

Search the app that you have previously registered in Azure AD and grant it the permission of Admin.










Sagar LadPosted Jul 25, 2021, 1:57 PM
Nice Article !!!