A cloud-based identity and access management service for securing user authentication and resource access
Error 500121 with the message “You didn't enter the expected verification code” indicates that Microsoft Entra multifactor authentication is not accepting the verification response that’s being provided.
From the available information, the supported remediation steps are:
- Confirm that the correct verification code is being entered and that it is current for the time window. If using Microsoft Authenticator or another TOTP app, ensure the displayed code is typed exactly as shown before it changes.
- If using the Microsoft Authenticator app with push notifications, make sure Verify is selected on the notification screen and not Cancel. Selecting Cancel causes the “expected response” error.
- If the current method continues to fail, switch to another verification method during sign-in by choosing Other verification options (for example, SMS or a different registered method) and complete sign-in that way.
- If multiple failed attempts have occurred, Microsoft Entra multifactor authentication may temporarily block additional attempts as unusual activity. In that case, wait before trying again, or use a different MFA method. If there is concern about malicious activity, an administrator should review Microsoft Entra sign-in logs.
- If none of the above resolves the issue, contact the organization’s help desk or a Microsoft Entra ID administrator so they can investigate the sign-in logs and, if needed, reset MFA registration for the affected account (for example, by requiring re‑registration of MFA so that new methods can be configured).
Backend traces, tenant-level policy review, and engineering escalation can only be performed by Microsoft support or a tenant administrator through official support channels; these actions are not available directly from documentation.
References:
- "We did not receive the expected response" error message when you try to sign in by using Azure Multi-Factor Authentication
- Common problems with two-step verification for a work or school account
- Troubleshoot Microsoft verification code issues
- Troubleshoot Azure Multi-Factor Authentication issues
- "Sorry, but we're having trouble signing you in" when a user signs in to Microsoft 365, Azure, or Intune
- Reset Personal Azure MFA - Microsoft Q&A
- Global Admin Locked out - Microsoft Q&A
- Having problems getting text codes to confirm my account - Microsoft Q&A
- Severity A Situation - Locked out of global admin account (MFA) - business down - Microsoft Q&A
- I need to reset my mfa methods - Microsoft Q&A