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.