Azure portal login issue after deleting the default login directory

Faakhir Habib 45 Reputation points
2024-12-27T21:51:35.4+00:00

Context:

I wasn’t able to upgrade my subscription, so I deleted my tenant to create a new one where I could buy a subscription. However, once I deleted it, it logged me out, and now when I try to sign in, it gets stuck in the redirect loop and gives this error. I assume that It tries to log in to the deleted tenant, hence failing. I also tried logging in using Azure CLI and tried to change the default directory but no luck.

PS C:\Users\Faakhir Habib> az login
Select the account you want to log in with. For more information on login with Azure CLI, see https://go.microsoft.com/fwlink/?linkid=2271136
Retrieving tenants and subscriptions for the selection...
Authentication failed against tenant 3ac9f063-9430-4a6a-969b-62e6db5b2ef8 'Default Directory': (pii). Status: Response_Status.Status_InteractionRequired, Error code: 3399614476, Tag: 557973645
The following tenants don't contain accessible subscriptions. Use `az login --allow-no-subscriptions` to have tenant level access.
7cc247fe-7e0a-4853-a01d-15f7c13dbcff 'Personal Workgroup'
f155de93-c97c-4646-9d14-51ba6356c7e1 'Default Directory'
If you need to access subscriptions in the following tenants, please use `az login --tenant TENANT_ID`.
3ac9f063-9430-4a6a-969b-62e6db5b2ef8 'Default Directory'

Thank you.

Microsoft Entra
0 comments No comments
{count} votes

Accepted answer
  1. Marcin Policht 31,480 Reputation points MVP
    2024-12-27T22:01:48.74+00:00

    You have to sign in by using a Microsoft Entra user account that exists in the newly created tenant


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


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.