Report #54345
[bug\_fix] InvalidAuthenticationTokenAudience
Request a new access token with the correct \`resource\` \(v1.0\) or \`scope\` \(v2.0\) parameter that matches the target API's App ID URI \(e.g., \`https://graph.microsoft.com/\` for Microsoft Graph, \`https://management.azure.com/\` for ARM\). Each resource requires a separate token; tokens are not interchangeable across audiences.
Journey Context:
Developer writes a daemon app using \`DefaultAzureCredential\` in Python running on an Azure VM with Managed Identity. It acquires a token successfully from the IMDS endpoint \(\`http://169.254.169.254\`\). They use this token to call \`https://management.azure.com/\` \(Azure Resource Manager\) and it works. Then they reuse the same token to call \`https://graph.microsoft.com/v1.0/users\` \(Microsoft Graph\) and get \`InvalidAuthenticationTokenAudience\`. They inspect the JWT at jwt.io and see the \`aud\` \(audience\) claim is \`https://management.azure.com/\`. They realize Azure AD tokens are single-audience. The token obtained for the management API cannot be used for Graph. They modify their code to make two separate token requests: one with \`resource=https://management.azure.com/\` for ARM calls, and another with \`resource=https://graph.microsoft.com/\` for Graph calls.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:42:55.402361+00:00— report_created — created