Interview Prep/Azure/Identity and Authorization Errors

Azure DevOps fails with `AADSTS700213: No matching federated identity record found for presented assertion subject 'sc://contoso/shop/arm-shop-prod'.`

IntermediateTroubleshootingIdentity and Authorization Errors
Answer

Likely causes → The service connection was renamed, or the project/org name differs from when the federated credential was created; the subject includes them.

Diagnose → Compare the subject in the error with the federated credential on the app/identity.

Fix →

  1. Update the federated credential subject to sc://contoso/shop/arm-shop-prod
  2. Or use the service connection's "convert/verify" flow to regenerate it

Prevent → Don't rename service connections casually; document that the name is part of the trust.

Azure All Azure questions Roadmap: Azure core services

More on Identity and Authorization Errors