Azure agentVM status not ready centOS

rdairo 1 Reputation point
2022-07-22T15:58:58.857+00:00

Hello All,
I tried starting my linux vm from azure portal and the agent status is showing "not ready" and I can't login using SSH.
223881-image.png

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

3 answers

Sort by: Most helpful
  1. George Chrysovalantis Grammatikos 531 Reputation points MVP Volunteer Moderator
    2022-07-23T16:45:07.49+00:00

    Hi,

    You could try first to remove the agent through the Azure Serial Console by following the steps below :

    systemctl stop walinuxagent
    waagent -deprovision -force

    then, install the latest package version, following the instruction from the document below:

    update-linux-agent


  2. Jackson Martins 10,606 Reputation points MVP Volunteer Moderator
    2022-07-23T22:59:30.49+00:00

    Hi @rdairo

    you informed that you cannot connect via ssh, and therefore you will not be able to execute the commands and reinstall agent, I will suggest:

    • In the boot diagnostics, check which boot screen appears, so:

    If it's on the login screen, it could be a problem with NSG or internal firewall rule,

    You can also connect via serial console to fix the connection.
    reference: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/serial-console-linux

    If the boot screen is stuck at another point, you may have to reinstall your vm.

    Best Regards


  3. Prrudram-MSFT 28,201 Reputation points Moderator
    2022-07-25T10:58:06.613+00:00

    Hello @rdairo ,

    Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.

    I would suggest you following the below article, that helps you find and correct the problems that occur due to Secure Shell (SSH) errors, SSH connection failures, or SSH is refused when you try to connect to a Linux virtual machine (VM).
    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection

    If your issue doesn't solve by that and requires deeper troubleshooting, it is recommended to raise a technical support ticket with Azure Virtual Machines support team. If you don't have the ability to open a technical support ticket, please let me know I can help you further on this.

    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.