Why use a Service Principal?
Power BI Sentinel needs to sign in to your tenant to collect data. When using a standard user account, the access token expires after approximately 90 days - at which point data collection stops until someone manually signs in again. A Service Principal is a dedicated app identity whose token lasts up to 2 years, keeping the connection alive without any manual intervention.
β This video may contain dated references to the Azure or Power BI Admin portal interface. Use the written steps below as your primary guide.
App Registration
Create a dedicated app identity in Azure for Power BI Sentinel to use. This section has nothing to do with the Power BI Sentinel platform - all steps are completed in the Azure portal by your Azure Admin. No Sentinel portal access is needed.
- Click New Registration
- Set a name - for example
PowerBISentinel - Under Supported account types, select Accounts in this organizational directory only
- In the Redirect URI dropdown, select Web (leave the URI field blank)
- Click Register
After creating the registration you will land on its Overview page. Copy the Application (client) ID - a GUID in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. You will need this when configuring the Power BI Sentinel portal in Section D.
- In the left-hand menu, click Certificates & secrets
- Click the Client secrets tab, then New client secret
- Set expiry to 24 months
- Click Add
- Immediately copy the Value field. This is the only time it will be visible. If you navigate away without copying it, you must delete and recreate the secret.
Microsoft Graph (Delegated)
User.Read- required to sign in
Power BI Service (Delegated)
App.Read.AllCapacity.Read.AllDashboard.Read.AllDataflow.Read.AllDataset.Read.AllDataset.ReadWrite.All(required for report backups)Gateway.Read.AllLakehouse.Read.All(optional - for Fabric Lakehouse data)Pipeline.Read.All(optional - for pipeline data)Report.Read.AllReport.ReadWrite.All(required for report backups)StorageAccount.Read.AllStorageAccount.ReadWrite.All(required for backups)Tenant.Read.AllTenant.ReadWrite.All(required for SP workspace access)Workspace.Read.AllWorkspace.ReadWrite.All(required for SP workspace access)
Microsoft Graph (Application - optional)
Directory.Read.All- for Entra Groups and licence data
Entra Security Group
The Power BI tenant settings you will enable in Section C must be scoped to a specific security group - they should not be enabled for the entire organisation.
- Click New Group
- Group type: Security
- Name it something identifiable - for example
PowerBISentinel-SP - Click No members selected and search for the App Registration you just created, then add it as a member
- Click Create
Power BI Tenant Settings
Two settings must be enabled in the Power BI Admin portal. These allow the Service Principal to retrieve admin API data, including tenant information, audit logs, and scan API data.
- Go to Tenant settings β Developer settings
- Find "Service principals can call Fabric public APIs"
- Enable it, then select Specific security groups
- Add your
PowerBISentinel-SPgroup and save
- In Tenant settings, find Admin API settings
- Find "Service principals can access read-only admin APIs"
- Enable it, select Specific security groups
- Add your
PowerBISentinel-SPgroup and save
Portal Configuration
Enter the Service Principal credentials into Power BI Sentinel, then configure workspace access.
- Sign in to the Power BI Sentinel portal and go to the Configure screen
- Under Server Config, enable "Use Service Principal"
- Enter your Client ID (Application ID from Section A)
- Enter your Client Secret (the Value you copied in Section A)
- Click Save
Advanced options - configure as follows:
Always Use Service Principal for Backups
Routes all backup operations through the Service Principal rather than individual user accounts.
Only Use Service Principal
Disables fallback to user account authentication. This will prevent collection of Column & Measure Usage, Change Tracking, and Apps Data. Leave disabled unless advised by support.
You have two options for granting the Service Principal Contributor access to your workspaces:
Manually add the App Registration as a Contributor member to each workspace in the Power BI Admin portal. This is straightforward for small tenants but impractical for larger ones.
Use the automated process in the Power BI Sentinel portal. See the steps below.
Automated process - prerequisites:
Before enabling the automated process, a Power BI Admin must first activate two specific permissions from their own user account in the portal. The steps for this are in the next task.
Sign in to the portal as a Power BI Admin and go to the Application Permissions screen. In the Individual permissions tab, enable both of the following:
| Scope | Description |
|---|---|
Tenant.ReadWrite.All | Required for the SP to be assigned to workspaces |
Workspace.ReadWrite.All | Required for the SP to be assigned to workspaces |
- Go to Configure β Server Config
- Enable "Grant Service Principal Contributor access to all workspaces automatically"
- Click Save
The Service Principal will use the signed-in Power BI Admin user's token to visit each workspace and add itself as a Contributor. This runs automatically in the background - the admin does not need to remain logged in, but their token must have been active within the last 90 days.
Service Principal setup complete
Power BI Sentinel will now use the Service Principal for tenant connections. Remember to sign in with your Power BI Admin user account approximately every 90 days to keep user-account-dependent data current.

