In general, to use Power BI APIs, we need to register the application with Power BI service. The application also needs to be authorized by Azure.
I used to register the app using site Power BI for Developers and manage permission via Azure Portal. Recently Power BI for Developers site was not working and I had to use Azure Portal.
Using Azure Portal proves to be one stop shop for App registrations and maintenance.
In this post I will explain in detail registering Native app & Web App for the use with Power BI API.
Log on to Azure Portal
Scroll down to Azure Active Directory.
Select App Registrations – > New application registration
Enter information about application.
Application Type: Native
Redirect URI: https://login.live.com/oauth20_desktop.srf
Click on “Create”
Step 4: Manage registered app (Permissions, Redirection …)
Under Azure Active Directory select App registrations
NOTE: Application ID is the Client ID. This ID is required to connect to Power BI service when using Power BI API.
Power BI Permissions
Register a Web App (Desktop Application using Power BI API):
Registering for a Web App is similar to Native App, except for following.
Generating Client secret
Client secret will be generated.