How to Register an Azure App to Use with Power BI

5 Comments

The Power BI API contains many useful features if you’re looking to interact with Power BI at the API level. In order to use it, we need to register an Azure App first. In this post, we will look at how to do this.

There are 2 options of how to register an Azure App – through the Azure portal and through the Power BI service. Let’s start with the Power BI Service.

Go to https://dev.powerbi.com/apps and click Sign In:

Click Next:

Give the App a name, such as Contoso Power BI Integration, and select the Application type and home page URL. Here we will select Server-side web application:

Enter a redirect URL and select which Power BI access the app should have. Below I am checking Select All, meaning the app has access to Reading, Writing and Creating:

Once Registered, we are provided with an Application ID and an Application Secret. Click Close:

The app has now been registered:

Pretty simple way of setting this up. Alternatively, let’s look at doing this through the Azure portal. To register an app in the Azure portal, go to https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade/quickStartType//sourceType/ and select New Registration:

Provide a name, e.g. PowerBIApp, and the supported account types, e.g. Single tenant, Multitenant etc, and click Register:

Note the Application Client Id to use when integrating with the API:

Select API Permissions and click Add a permission:

Select Power BI Service:

I will grant access to several pieces of Power BI API functionality, and click Add Permissions:

Next, click on Grant admin consent for your org (or you may run into the error “The user or administrator has not consented to use the application”):

You will be prompted to accept the conditions:

Once complete, go to Certificates and Secrets. We will create a new secret that we will use when using the API:

Give the secret a name and duration:

That’s it, you are now set up to integrate to the Power BI API.

THANKS FOR READING. BEFORE YOU LEAVE, I NEED YOUR HELP.
 

I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM.

IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND SOMETHING USEFUL READING MY BLOG, I WOULD REALLY APPRECIATE YOU SUBSCRIBING TO MY YOUTUBE CHANNEL.

THANK YOU, AND LET'S KEEP LEARNING TOGETHER.

CARL

https://www.youtube.com/carldesouza

 

ABOUT CARL DE SOUZA

Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, Power BI, Azure, and AI.

carldesouza.comLinkedIn Twitter | YouTube

 

5 Responses to How to Register an Azure App to Use with Power BI

Leave a Reply

Your email address will not be published. Required fields are marked *