VM Agent Status is not ready

Noaman Mohamed 0 Reputation points
2025-07-02T13:12:57.9666667+00:00

i cant connect linux VM SSH and i don't know why ?

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

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 124.1K Reputation points MVP Volunteer Moderator
    2025-07-02T13:46:42.8333333+00:00

    Hi @Noaman Mohamed ,

    please take a look here for troubleshooting the SSH connection issue with a Linux Azure VM: Troubleshoot SSH connections to an Azure Linux VM that fails, errors out, or is refused

    For details regarding troubleshooting of the VM Agent in Linux please take a look here: Troubleshoot the Azure Linux Agent


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    0 comments No comments

  2. Anusree Nashetty 4,950 Reputation points Microsoft External Staff Moderator
    2025-07-03T21:33:45.18+00:00

    Hi Noaman Mohamed,

    If you are unable to connect to your Linux VM via SSH, please try below troubleshooting steps:

    Go to Azure Portal then to your VM, check if status is Running. If it's stopped or deallocated, start the VM.
    In the Networking tab of the VM, check for Inbound port rules. See that a rule exists to allow TCP port 22 from your IP.
    Check the Boot diagnostics screenshots to confirm if the VM booted successfully or has kernel issues. Azure boot diagnostics

    If the Azure VM Agent status is not ready, please check:
    If SSH doesn't work, use serial console. Go to Azure Portal then to your VM. In the left side panel Serial Console, check the Azure agent service:

    sudo systemctl status waagent
    

    If it's inactive or failed, restart it:

    sudo systemctl restart waagent
    

    For detailed information, please check: Troubleshoot SSH connections, Troubleshoot the Azure Linux Agent

    If you have any further queries, let me know. If the information is helpful, please click on Upvote and Accept Answer on it.

    0 comments No comments

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.