Share via

Failed to get API token

Jagadeesh Nellimarla 0 Reputation points
2026-02-20T00:09:32.58+00:00

We are Azure service provider partners. Trying to reach Azure via API, however encountering below error. What could be the potential reason and steps to resolve this. We are also unable to login to the portal https://portal.azure.us/#home

Error_description":"AADSTS5000224: We are sorry, this resource is not available. If you are seeing this message by mistake, please contact Microsoft support. ,"error_codes":[5000224],"timestamp":"2026-02-19 23:55:54Z","

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. Sridevi Machavarapu 31,415 Reputation points Microsoft External Staff Moderator
    2026-02-20T00:51:29.56+00:00

    Hello Jagadeesh Nellimarla,

    Thanks for sharing the requested details in Private messages tab.

    This was not related to the API. The issue was with tenant authentication, where users could not sign in to the Azure US Gov portal and MFA registration failed even for Global Admins. Because authentication did not complete, token requests returned AADSTS5000224.

    We worked with the engineering team to restore authentication, and access to the tenant was successfully re-enabled.

    Following that, the problem was linked to the access configuration. A Conditional Access policy (for example, one targeting Microsoft partners and vendors) was blocking sign-ins, while per-user MFA was also enabled. This conflicted with the expected MFA flow. Users without prior MFA setup were unable to proceed.

    After adjusting the configuration by disabling per-user MFA and temporarily relaxing the Conditional Access policy, users were able to sign in and complete MFA registration. Portal access and API token generation then functioned normally.

    If a similar situation occurs, check the sign-in logs, Conditional Access policies, and MFA configuration.

    Hope this helps. Feel free to reach out if you have any further questions.

    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.