I have just opened a free trial account for Azure and I am experiencing some very strange behavior trying to install the Azure CLI on a fresh Ubuntu VM....I am printing the steps I am trying below 1 by 1 in case anyone else has experienced this.
- Start up a Ubuntu virtual machine, install the Azure CLI tool, and run "az login". It will display a web address plus code to authenticate.
- Open Edge and clear all browsing data (this includes cookies). Close Edge and re-open.
- Go to portal.azure.com and verify that I am not signed in. It displays a login prompt (specifically, it says "Work or school, or personal Microsoft account"). Leave this tab open for now.
In a new tab, go to aka.ms/devicelogin, put in my authentication code, and click "Continue". It will redirect to the same Microsoft login prompt as above ("Work or school, or personal Microsoft account")
Enter the Outlook.com email address associated with my free trial. When I tab into the password entry, it will redirect me to a different Microsoft login screen for me to enter my password.
- When I type in the (correct) password, it will tell me "We don't recognize this user ID and password". There is no chance the user ID or password is wrong. This can be verified by immediately refreshing the still open tab from Step #3 (to portal.azure.com) and discovering it is now logged into the Azure portal. So I am definitely entering the correct ID/password, but for some reason the aka.ms/devicelogin is telling me it is incorrect. My other tab is recognizing I am now logged in.
Has anyone else experienced this? I was thinking it might have to do with the fact that I have a personal (@Outlook.com) Azure account as well as a work (@WorkDomain.com) account, but I've cleared cookies as well as deleted all Windows/Web Credentials in Credential Manager as indicated in this link: Error: We don't have a valid access azure with Azure CLI