Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hello @Mark Jones
Thank you for reaching out Microsoft Q&A.
We're glad that you found the fix for your query and thank you for sharing the same in this forum. Please feel free to reach out to us in case of any further queries.
Re-iterating the solution, whenever such issue occur please ensure the following are all aligned to the same tenant:
The App Registration / service principal
The federated identity credential (issuer: https://token.actions.githubusercontent.com, audience: api://AzureADTokenExchange, subject matching your repo/branch)
GitHub secrets: AZURE_CLIENT_ID, AZURE_TENANT_ID, and AZURE_SUBSCRIPTION_ID
The App Service itself
OIDC trust in Azure is tenant‑scoped, so any mismatch causes GitHub to sign in to the wrong directory.
Reference:
https://learn.microsoft.com/azure/developer/github/connect-from-azure-openid-connect