-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az login hangs after selecting account #10578
Comments
Azure CLI opens port 8400 to listen to returned auth code. The hang is usually caused by blocked 8400 port. You may use psping to test if port 8400 can be reached: https://docs.microsoft.com/en-us/sysinternals/downloads/psping
If the device can't open 8400, you may use |
The port doesn't seem to be the problem. |
When CLI is logining in, can |
I get the following whether the CLI is logging in (when not logging in, it's all just refusals).
|
Possibly related to Python's Per Git Blame, this change is introduced in python/cpython@18865de. This has a side-effect on Windows: https://stackoverflow.com/a/14388707/2199657
Thus |
Note that this problem is intermittent and I cannot replicate the exact circumstances that cause Also, not sure if this is related, but when developing in VS2019 that uses Azure KeyVault for developer secrets, I have to run |
In this PR, if port 8400 is occupied, CLI will now print a warning. Let's see if this update exposes anything. You may copy the changed file from the PR to the installation folder for a quick test. |
solved here - #26180 |
@welersonlisboa, this issue is not relevant to #26180. |
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az login
Errors:
The command does launches a browser and allows me to select an account. After selecting an account, the browser just spins and the shell just waits.
I've left it running for 5 minutes before closing the browser or hitting
Ctrl-C
.To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az login
Expected Behavior
I expect the command to launch a browser and allow me to select an account to log in with, then login me in.
Environment Summary
Additional Context
What's strange is that if I use the
--debug
parameter, it works with no problems.The text was updated successfully, but these errors were encountered: