az login stopped working after updating to latest az cli #27955
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
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.
![image](https://private-user-images.githubusercontent.com/22573271/287176826-67021c85-bf73-4d73-a168-6f63e46567ce.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NTgzODksIm5iZiI6MTczOTY1ODA4OSwicGF0aCI6Ii8yMjU3MzI3MS8yODcxNzY4MjYtNjcwMjFjODUtYmY3My00ZDczLWExNjgtNmY2M2U0NjU2N2NlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDIyMjEyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE5YWIzNDEwZDA4NTljNDI1ZmZmZWQ5MDEyMTY4ZTNmMmZhMjQ3MTAwMzY2ODAxOWU1NzhiZTg1MTY2MmM5YTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.oGA4lzwa9UCMrRSyBS9e4nXkS4WvkT4aou4VeXIV0qc)
Here is the output:
and here is the output of az version
![image](https://private-user-images.githubusercontent.com/22573271/287177032-8c6b2663-2da0-431a-b7a4-892985b5b379.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NTgzODksIm5iZiI6MTczOTY1ODA4OSwicGF0aCI6Ii8yMjU3MzI3MS8yODcxNzcwMzItOGM2YjI2NjMtMmRhMC00MzFhLWI3YTQtODkyOTg1YjViMzc5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDIyMjEyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQzYzc2NDkwYWRjNTMxOTBiODVlN2NhNjNkNmY5MWYwODhlN2FjN2NkYWJhYTgzNWY2NjRhYTllNGFjZDViOWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.gUsfBnSXkpYJ74_ozSxArxbD4CUq46NJLNLT8-qFu9E)
Happy to share further info
Related command
az login
Errors
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
The text was updated successfully, but these errors were encountered: