skip to Main Content

For a long time was using Terraform with Azure and it worked fine. Now for any reason the az cli command it doens’t work.
I’m getting follow error:

AADSTS500200: User account 'xxxx ' is a personal Microsoft account. Personal Microsoft accounts are not supported for this application unless explicitly invited to an organization. Try signing out and signing back in with an organizational account.

I’ve already upgrade az cli versin to 2.42 but problem perists. Even using incognito mode couldn’t login to Azure.
Instead of using az login, via browser I’m able to login to azure cloud without issues.

2

Answers


  1. Chosen as BEST ANSWER

    The problem was related with Az cloud list. The active azure cloud was "AzureUSGovernment" instead of "AzureCloud". Once enabled "AzureCloud" issue got fixed.

    az cloud set --name AzureCloud
    

  2. Try the below commands to clear the cache.

    az account clear
    az login
    

    or

    az login --tenant [tenant id]
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search