Pragmatic Works Nerd News

Ins and Outs of Power BI Admin API's and Registering an Azure App | Azure Tutorial

Written by Manuel Quintana | May 27, 2026

      In this video, Manuel Quintana introduces the Power BI Admin API endpoints, focusing on the process of using service principles and registering an Azure app. The aim is to give viewers a streamlined guide to access and interact with Power BI’s admin APIs efficiently. The video covers everything from understanding API endpoints to registering an app in the Azure portal for authentication.

 

What Are Power BI Admin API Endpoints?

  • Power BI Admin API endpoints allow users to retrieve data related to workspaces, datasets, dashboards, and other administrative tasks within Power BI.
  • The APIs are useful for accessing tenant-level data, especially for administrators who need to track and manage Power BI services.

Using a Service Principal for Authentication

  • Service principles are used for authentication instead of using user credentials.
  • Registering an Azure app and granting appropriate permissions enables service principals to access Power BI Admin APIs.
  • One must set up an app registration in the Azure portal to utilize service principles for authentication.

Setting Up the Azure App Registration

To begin, users need to register an app in Azure. Here’s the general process:

  • Sign into the Azure portal and navigate to app registrations.
  • Create a new app by specifying a name and selecting the appropriate options.
  • After the app is registered, the user needs to generate a client secret, which will serve as the authentication method.

Assigning Permissions and Security Groups

After registering the app, users need to assign the correct API permissions to the app. Permissions include:

  • Tenant Read and Tenant ReadWrite permissions, which are essential for accessing the admin APIs.
  • Delegated permissions are used for granting the app permissions to act on behalf of the signed-in user.
  • It’s crucial to grant these permissions through the Azure portal and ensure they’re properly configured for access to the Power BI Admin API.

Testing the API Using PowerShell

Once the Azure app is registered and permissions are granted, users can start testing the API with PowerShell:

  • Manuel walks through how to use PowerShell to authenticate using the service principal and retrieve data from the Power BI API endpoints.
  • Users can query the Power BI workspace list, datasets, and other important information.
  • The script outputs the results in a CSV file, which can be used for reporting or auditing purposes.

Key Considerations When Working with the Power BI Admin API

  • The API is designed to work at a tenant level, meaning it requires administrative access for full functionality.
  • Permissions must be carefully managed, and service principals need the appropriate delegated permissions for seamless API usage.
  • Users may need to work with security groups to ensure the service principal has the necessary access for administrative tasks.

Final Thoughts

Manuel emphasizes that using the Power BI Admin API can greatly improve your auditing and administrative processes within Power BI. By leveraging service principals and app registrations, users can automate and streamline tasks that would otherwise require manual input. This tutorial is an excellent starting point for those looking to harness the power of the Power BI Admin API for improved management and reporting.

Don't forget to check out the Pragmatic Works' on-demand learning platform for more insightful content and training sessions on Power BI and other Microsoft applications. Be sure to subscribe to the Pragmatic Works YouTube channel to stay up-to-date on the latest tips and tricks.