Azure wants 6 digits code but Authenticator generates 8 digits

Scott Friedman 0 Reputation points
2026-04-23T00:37:41.6466667+00:00

I'm trying to login into my Azure account but it wants a 6-digit code from Microsoft Authenticator but Authenticator generates a 8-digit code. I tried to remove my account from Authenticator, remove and create password, turn on and off 2-factor authentication but nothing worked. I still can't login to Azure. I can login everywhere else like Outlook, Microsoft 365 Copilot but not Azure.

I can login to my Azure account via the Azure CLI - which is strange.

How to resolve this?

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Oldest
  1. AI answer

    2026-04-23T00:37:53.72+00:00

    The 8‑digit codes in Microsoft Authenticator indicate that the account is configured with an incompatible or stale MFA/sign‑in method for Azure Portal, even though it still works for other services. The Azure MFA profile for this account is likely stuck and must be reset from the tenant side so that new, correct methods (including 6‑digit codes or push notifications) can be registered.

    Resolution requires an administrator in the tenant to reset the MFA registration for this user, then the user signs in again and reconfigures MFA:

    1. A Global Administrator (or another admin) signs in to the Microsoft Entra admin center.
    2. Go to IdentityUsersAll users.
    3. Select the affected user account.
    4. Open Authentication methods.
    5. Select Require re-register multifactor authentication.
    6. Save the change.

    After this, sign in to the Azure Portal again with the affected account. The sign‑in flow will prompt to set up MFA from scratch (for example, re‑adding Microsoft Authenticator or a phone method). This will register a fresh, compatible MFA configuration so that the correct verification options (including 6‑digit codes or push/prompt) are used for Azure sign‑in.

    If the affected account is a guest in another tenant, an admin in that tenant must perform the same Require re-register multifactor authentication step on that guest user object.

    If there is no other admin and this is the only admin account, create or use another admin account (as was done in the referenced scenario) to perform the reset, then reconfigure MFA for the original account.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.