using az logon from ssh hangs before retrieving subscription information

Peter Hull 40 Reputation points
2024-10-04T21:31:51.82+00:00

I'm trying to use az logon on a terminal (ssh) session to login to azure from a debian vm this hangs after the web logon confirmation repeatedly trying to reach azure. (I've run with debug and the repeated attempts to ask for the subscripion information get no response.)

Any pointers please ?!

Peter D Hull

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,997 questions
{count} votes

Accepted answer
  1. Deepanshukatara-6769 10,300 Reputation points
    2024-10-07T04:51:07.6733333+00:00

    Hello, Welcome to MS Q&A

    1. Make sure you are using the latest version of the Azure CLI. You can update it using:
       sudo apt-get update
       sudo apt-get install --only-upgrade -y azure-cli
       
    
    
    1. If you are behind a proxy, configure the Azure CLI to use the proxy:
       export HTTP_PROXY=http://proxy-server:port
       export HTTPS_PROXY=http://proxy-server:port
       
    
    
    

    3 Debug Logs: Run the command with the --debug flag to get more detailed logs:

       az login --debug
       
    
    

    If the issue persists, please let us know with will check further

    Thanks,
    Deepanshu

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.