Run Admin Monitoring with a service principal
When the Admin Monitoring daily refresh runs as a service principal, it keeps working when people change roles or leave, and you can set up Admin Monitoring without being a Fabric administrator. A service principal is an app identity your organization creates in Microsoft Entra.
Prerequisites
- A service principal in Microsoft Entra, with a secret.
- An Azure Key Vault your organization owns, where you can read secrets.
- A Fabric administrator who can change tenant settings in the Fabric admin portal.
- For Azure Log Analytics, someone who can assign roles on the Log Analytics workspace.
Turn on the tenant settings
A Fabric administrator does these steps in the Fabric admin portal.
- Turn on "Service principals can access read-only admin APIs" for a security group that includes the service principal.
- Turn on "Enhance admin APIs responses with detailed metadata".
- Turn on "Enhance admin APIs responses with DAX and mashup expressions".
- For Azure Log Analytics, give the service principal the "Log Analytics Data Reader" role on the Log Analytics workspace, in Azure.
To send these steps to your Fabric administrator, open What a Fabric administrator does for a service principal on the Admin Monitoring page before setup, and select Copy these steps.
Store the secret in Azure Key Vault
- Save the service principal's secret in your Azure Key Vault.
- Note the Key Vault address and the secret name. You enter them when you connect the service principal.
Connect the service principal
- Open the Connect a service principal dialog from one of these places:
- Before setup, select Use a service principal.
- In setup step 3, with Azure Log Analytics chosen, select Connect a service principal.
- In setup step 4, select Change on the Daily refresh row and choose A service principal.
- Enter the Application (client) ID: the service principal's app ID in Microsoft Entra, in the form 00000000-0000-0000-0000-000000000000.
- Enter the Directory (tenant) ID: your organization's tenant ID, in the same form.
- Enter the Key Vault address, for example https://your-vault.vault.azure.net, with nothing after it.
- Enter the Secret name: up to 127 letters, numbers and hyphens.
- Select Continue, and finish setting up Admin Monitoring.
Switch an existing setup to a service principal
- On the Admin Monitoring home, select Change the account beside Runs as.
- Choose A service principal, and enter its four details.
- Select Save. BI Pixie uses the service principal from the next daily refresh onward.
Test the connection
After setup, select Test the connection in the Connection row of Daily refresh to confirm that the service principal can read everything the daily refresh needs. See Test the connection.
Considerations and limitations
- BI Pixie never sees or stores the secret. The daily refresh reads it from your Key Vault each time it runs, with the sign-in of the person who set up Admin Monitoring. If that person loses permission to read secrets in the Key Vault, the daily refresh can no longer sign in as the service principal.