how to fix agent not ready states

mybeer oh 0 Reputation points
2023-04-11T02:59:05.2966667+00:00

vm overview says "virtual machine agent status is not ready" I tried to follow trouble shouting instructions which suggests reinstall agent or something, but I can't send any linux command as I can't connect ssh and even "Run commend" operations doesn't work. any help?

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

2 answers

Sort by: Most helpful
  1. risolis 8,711 Reputation points
    2023-04-11T04:04:59.8333333+00:00

    Hello @mybeer oh Thank you for posting this concern on this community space. I have read your whole case scenario description and I just wanted to share the following steps which might fit into this request:

    • -Did you try to re-apply or re-deploy option?
    • -Did you use boot diagnostics option?
    • -Did you try to use serial console?
    • -Did you set up custom DNS or Azure default DNS feature?
    • -Did you use the Extentions+applications options to push the agent?

    I hope that will be helpful for you. Looking forward to your feedback, Cheers, Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


  2. msrini-MSFT 9,276 Reputation points Microsoft Employee
    2023-04-13T10:26:39.9266667+00:00

    Hi, From Azure portal, you can open up the serial console to execute commands. You can try the following: Stop the waagent service by running the following command: sudo service waagent stop Uninstall the waagent service by running the following command: sudo apt-get remove --purge walinuxagent Install the latest version of the waagent service by running the following command: sudo apt-get update && sudo apt-get install -y walinuxagent Start the waagent service by running the following command: sudo service waagent start Check the status of the waagent service by running the following command: sudo service waagent status Regards, Karthik Srinivas