Can't access Azure AI Foundry - tenant is blocked due to inactivity (AADSTS5000225)

Samir El Hamli 20 Reputation points
2025-08-07T08:03:11.0166667+00:00

I have a paid subscription to Microsoft Azure and cannot access some services.

I log into the Microsoft Azure portal with my Microsoft account. I click on the button with the nine dots in the top left corner and then open Intune, for example. Then I select the same Microsoft account to log in and am redirected and receive the following error message:

Sign-in failed

Error code: AADSTS5000225

Error message: AADSTS5000225: This tenant has been blocked due to inactivity. To learn more about tenant lifecycle policies, see https://aka.ms/TenantLifecycle Trace ID: 9cd5ab2e-f1ae-4c28-befe-a08cfcb91500 Correlation ID: 39dfac46-8b21-4abf-9042-314c3e4d79c8 Timestamp: 2025-08-06 14:55:33Z

When I want to log in to Azure AI Foundry, I try to log in again with my Microsoft account. During login, the tool takes a very long time to load before sending me back to the login page with the following error message:

“Login is not possible. Please try again.”

During the attempted login, the following links are attempted to be accessed:

https://ai.azure.com/?tid=organizations

https://ai.azure.com/?tid=89128202-4c1e-42bd-afe7-71ab063d8d92

https://ai.azure.com/#error=interaction_required&error_description=AADSTS5000225%3a+This+tenant+has+been+blocked+due+to+inactivity.+To+learn+more+about+tenant+lifecycle+policies%2c+see+https%3a%2f%2faka.ms%2fTenantLifecycle+Trace+ID%3a+046c20d8-6312-4ab5-bb15-f4ea19d52900+Correlation+ID%3a+5d247a69-ccf4-4b29-a3da-9066f893e340+Timestamp%3a+2025-08-06+15%3a23%3a33Z&state=eyJpZCI6ImY2MWRkM2U1LWVkMWQtNDA4Ny05MGFhLTE5NzUxOWE2MTEwZSIsIm1ldGEiOnsiaW50ZXJhY3Rpb25UeXBlIjoicmVkaXJlY3QifX0%3d

The link shows the same error message as above.

After doing some research, I found out the following:

When I click on my profile in the top right corner, I can change my directory.

In Directories + Subscriptions, under All Directories, I see exactly two directories. One is the “Default Directory” and the other is the directory named “IT Project Management.” The “IT Project Management” directory is an old directory that I probably created six years ago as part of my studies or that I was invited to join. I can't remember anymore.

I click on the button with the nine dots in the top left corner, then I open Entra and am successfully redirected to the Microsoft Entra Admin Center. Here, I click on Overview in the menu on the left and then click on Manage tenants. Here I see the same two directories as before.

Default directory with organization ID xxxxxxx-xxxx-xxxx-xxxxxxx

IT project management with organization ID 89128202-4c1e-42bd-afe7-71ab063d8d92

The incorrect directory is therefore the IT project management directory. The incorrect directory is therefore the IT project management directory.

When I try to delete this directory, I am redirected again and receive the following error message:

Sign-in failed

Error code: AADSTS5000225

Error message: AADSTS5000225: This tenant has been blocked due to inactivity. To learn more about tenant lifecycle policies, see https://aka.ms/TenantLifecycle Trace ID: 12a6f877-0360-495c-95c9-d8abb5832b00 Correlation ID: 35e781ff-b05f-4401-aa6d-f0900bac9534 Timestamp: 2025-08-06 15:34:35Z

When I try to exit the client, I have to log in, but I don't know which account to use because my normal Microsoft account doesn't work. I get the following error message:

“It is not possible to register with a personal account here. Please use your business, school, or university account instead.”

I understand the problem, namely that when logging in to some tools, the inactive directory is loaded instead of the default directory.

My request:

I would like to delete the IT project management directory so that I can access the Azure tools without any problems.

Thank you very much.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
{count} votes

Accepted answer
  1. Aryan Parashar 150 Reputation points Microsoft External Staff Moderator
    2025-08-08T12:06:39.8666667+00:00

    Hi Samir,
    Follow the below steps:

    1: Force Login to Correct Directory

    Use this link to log in directly to your active (Default) directory:

    https://portal.azure.com/#@<DefaultTenantID>/dashboard

    Replace <DefaultTenantID> with your actual directory (tenant) ID.

    After logging in, click your profile picture in the top-right corner.

    Choose Switch Directory and make sure you’re in the Default Directory.

    2: Open AI Foundry in the Right Tenant

    Use this link to open Azure AI Foundry in the correct tenant:

    https://ai.azure.com/?tid=<DefaultTenantID>

    Replace <DefaultTenantID> with your actual tenant ID.

    If You Use Azure CLI:

    Log into the right tenant:

    az login --tenant <DefaultTenantID>

    List subscriptions for that tenant:

    az account list --query "[?tenantId=='<DefaultTenantID>']" -o table

    Set your subscription context:

    az account set --subscription <SubscriptionID>

    3: Try to Leave the Old, Blocked Tenant

    Go to the Azure portal and open the Microsoft Entra Admin Center.

    Navigate to Manage tenants.

    Select the old tenant.

    Click the Leave button
    User's image

    Validate Everything is Fixed

    Try opening AI Foundry again using the correct link.

    Or, in CLI, run:

    az account show

    and confirm that the tenantId and subscriptionId match your active directory.

    If the issue still persists:

    If you still get the error or can’t leave the old tenant, it’s locked and cannot be managed by you.

    You need to raise an Azure support ticket and provide these details:

    Error Code

    Blocked Tenant ID

    A recent Trace ID from your error message

    Here is the supported documentation:
    https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

    Let me know if this helps.
    Thank you for reaching out to the Microsoft QNA Portal.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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