Azure Login Doesn't Work
See original GitHub issueDescription
Outline the issue here: I and my collages in my team are unable to log into azure using the Azure 2.0 CLI. Please refer to Microsoft case [REG:117071416044145] for more information.
$ az login
To sign in, use a web browser to open the page https://aka.ms/devicelogin and enter the code B96KZELHQ to authenticate.
No subscriptions were found for 'None'. If this is expected, use '--allow-no-subscriptions' to have tenant level accesses
Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
curl -L https://aka.ms/InstallAzureCli | bash
CLI Version: What version of the CLI and modules are installed? (Use az --version
)
azure-cli (2.0.12)
acr (2.0.9)
acs (2.0.11)
appservice (0.1.11)
batch (3.0.3)
billing (0.1.3)
cdn (0.0.6)
cloud (2.0.7)
cognitiveservices (0.1.6)
command-modules-nspkg (2.0.1)
component (2.0.6)
configure (2.0.10)
consumption (0.1.3)
container (0.1.7)
core (2.0.12)
cosmosdb (0.1.11)
dla (0.0.10)
dls (0.0.11)
feedback (2.0.6)
find (0.2.6)
interactive (0.3.7)
iot (0.1.10)
keyvault (2.0.8)
lab (0.0.9)
monitor (0.0.8)
network (2.0.11)
nspkg (3.0.1)
profile (2.0.9)
rdbms (0.0.5)
redis (0.2.7)
resource (2.0.11)
role (2.0.9)
sf (1.0.5)
sql (2.0.8)
storage (2.0.11)
vm (2.0.11)
Python (Darwin) 2.7.10 (default, Feb 7 2017, 00:08:15)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
Python location '/Users/mbernadin/lib/azure-cli/bin/python'
OS Version: What OS and version are you using?
MacOS 10.12.6
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Bash
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
You can't sign in to Microsoft 365, Azure, or Intune
You can sign in to the portal · Work with your admin to make sure that you have the correct licenses applied to...
Read more >Problems signing in to a Microsoft application - Microsoft Entra
Open the Azure portal and sign in as a Global Administrator. · Open the Azure Active Directory Extension by clicking All services at...
Read more >Troubleshoot sign in problems in Azure AD Domain Services
Learn how to troubleshoot common user sign-in problems and errors in Azure Active Directory Domain Services.
Read more >Troubleshoot application sign-in - Microsoft Learn
Open the Azure portal and sign in as a Global Administrator. · Open the Azure Active Directory Extension by selecting All services at...
Read more >Cannot login to Azure portal - Microsoft Q&A
My only options for signing in is using the authenticator, which does not work. Any help? 107268-screenshot-2021-06-20-at-212203.png.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Use
az cloud set -n AzureUSGovernment
andaz cloud set -n AzureCloud
to get back to the public one useaz cloud list
for other cloud environments you can switch toPer our mail exchange, the cause was the government cloud was picked up but the subscription comes from the public cloud. After switched to the right cloud, things started to work. So i am closing this issue, as login works correctly.