Skip to content
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 stopped working after updating to latest az cli #27955

Closed
shobhit-kumar-code opened this issue Dec 1, 2023 · 2 comments
Closed

az login stopped working after updating to latest az cli #27955

shobhit-kumar-code opened this issue Dec 1, 2023 · 2 comments
Assignees
Labels
Account az login/account Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@shobhit-kumar-code
Copy link

Describe the bug

After updating to the latest az cli, I get an error message when i run az login. I can proceed with device code but it doesn't support a usecase.
Here is the output:
image

and here is the output of az version
image

Happy to share further info

Related command

az login

Errors

image

Issue script & Debug output

msal.telemetry: Generate or reuse correlation_id: XXXXXXXXXXXXXXXXXXXXXX
msal.oauth2cli.oauth2: Using http://localhost:45495 as redirect_uri
msal.oauth2cli.authcode: Abort by visit http://localhost:45495?error=abort

Expected behavior

I expect a browser to pop up where i enter the login details

Environment Summary

azure-cli 2.54.0

core 2.54.0
telemetry 1.1.0

Extensions:
bastion 0.2.5
connectedk8s 1.4.2
customlocation 0.1.3
k8s-extension 1.5.2
mobile-network 0.2.1
ssh 2.0.1

Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2

Python location '/opt/az/bin/python3'
Extensions directory '/home/shobhit/.azure/cliextensions'

Python (Linux) 3.11.5 (main, Nov 8 2023, 05:20:54) [GCC 11.4.0]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

@shobhit-kumar-code shobhit-kumar-code added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 1, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Account az login/account labels Dec 1, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Dec 1, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 1, 2023

Thank you for opening this issue, we will look into it.

@yonzhan yonzhan added this to the Backlog milestone Dec 1, 2023
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 1, 2023
@jiasli
Copy link
Member

jiasli commented Dec 1, 2023

Duplicate of #27879. The root cause is microsoft/WSL#8892.

@jiasli jiasli marked this as a duplicate of #27879 Dec 1, 2023
@jiasli jiasli closed this as completed Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Account az login/account Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants