Report #92405
[bug\_fix] 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
Run \`az login\` to trigger an interactive authentication flow that satisfies the MFA requirement. If using a service principal in CI/CD, use a client secret or certificate rather than user credentials subject to Conditional Access policies. Root cause: Azure AD Conditional Access policies enforce MFA re-authentication when the refresh token expires or risk signals \(location, device\) change, and the cached token cannot be silently refreshed.
Journey Context:
Developer has a script that runs \`az keyvault secret show\` which worked this morning. Now it fails with 'AADSTS50076: ... you must use multi-factor authentication'. They run \`az account show\` and see they are still logged in with a valid-looking session. They try \`az account get-access-token --resource https://vault.azure.net\` and get the same MFA error. They check the Azure Portal > Sign-in logs and see their last sign-in status 'Interrupted' with 'MFA required' in the Conditional Access tab. They remember the admin announced a new policy requiring MFA every 8 hours for high-risk operations. The \`az cli\` is using a cached refresh token that is valid but the Conditional Access policy rejects silent refresh because the last MFA was 10 hours ago. They run \`az login\`, complete the browser MFA prompt, and the script resumes working.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:41:45.234636+00:00— report_created — created