Interview Prep/Azure/Identity and Authorization Errors

`AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'.` in a nightly script.

IntermediateTroubleshootingIdentity and Authorization Errors
Answer

Likely causes → The script uses a human account, and a Conditional Access policy now requires MFA for Azure management (797f4846... is the Windows Azure Service Management API).

Diagnose → Check Entra sign-in logs for the account, which show the CA policy applied.

Fix →

  1. Move the script to a managed identity (if it runs in Azure) or a service principal with federated credentials
  2. Grant that identity the needed roles; remove the human account from automation

Prevent → Policy: no automation with user accounts. Conditional Access will keep tightening.

Azure All Azure questions Roadmap: Azure core services

More on Identity and Authorization Errors