Entra ID configuration
January 9, 2026 ยท View on GitHub
Add API permission
Use the az ad app permission add Azure CLI command to add additional API permissions.
az ad app permission add --id {entraAppId} --api {downstreamAppId} --api-permissions {apiPermissionId}=Scope
Note: The Entra app ID can be found in the
azd env get-valuesoutput.
Azure MCP has tools that access various kinds of downstream APIs. Azure Resource Manager and Azure Storage are the ones needed for its storage tools. If you aren't sure what downstream API you need for the tool you would like to use, checkout out this API permission document to see which API permissions you need to add for the Azure MCP tools you want to use.
Grant admin consent for downstream API calls
Use the az ad app permission admin-consent Azure CLI command to grant admin consent to the API permission.
az ad app permission admin-consent --id {entraAppId}
If you don't give consent for the API permissions of the downstream APIs, the Azure MCP server will receive a claims challenge saying the user haven't given consent to the downstream API when attempting to acquire an access token for it.
Create a Client Credential for the server app registration
- Login to Azure Portal and search for the server app registration client ID.
- Open the
Certificates & secretestab, selectFederated credentialsand clickAdd credential. - Select
Managed Identityin theFederated credential scenario. - Click
Select a managed identityand follow the UI to select the managed identity created by this template. Give a descriptive name and description and clickAdd. - In the Container App's environment variables, add two environment variables
AzureAd__ClientCredentials__0__SourceType=SignedAssertionFromManagedIdentityandAzureAd__ClientCredentials__0__ManagedIdentityClientId={your_managed_identity_client_id}.