Skip to content

az login interactive goes to a localhost link that can't be reached #22377

@ammarasmro

Description

@ammarasmro

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az login

Errors:
Chrome returning:

This site can’t be reachedlocalhost refused to connect.
Try:

Checking the connection
[Checking the proxy and the firewall](chrome-error://chromewebdata/#buttons)
ERR_CONNECTION_REFUSED

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az login

Expected Behavior

Environment Summary

Linux-5.4.0-1074-azure-x86_64-with-glibc2.27, Ubuntu 18.04.6 LTS
Python 3.8.13
Installer: DEB

azure-cli 2.36.0

Extensions:
ml 2.3.1

Dependencies:
msal 1.17.0
azure-mgmt-resource 20.0.0

Additional Context

This happens when I try to do anything azure related through an AzureML compute instance. It opens up the interactive screen. I click on my account and it goes to a localhost:... link and gives the error above. I can curl that link from a terminal in the machine and it seems to return a success but the cli doesn't get the response and keeps waiting

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions