Azure linux virtual machine agent status is not ready

Fabian 6 Reputation points
2022-12-08T06:51:29.9+00:00

Hello!

I cannot connect to my linux VM. It returns an error saying that the virtual machine agent status is not ready.

To work around I created a new Linux VM with new primary and running disk, and added the other disk with the agent problem as a slave disk to the new installation.

Is there a way to transfer the agent files from the new installation disk to the slave disk or somehow correct the issue, as I have access to the files? Thanks.

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

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 28,201 Reputation points Moderator
    2022-12-08T13:11:34.45+00:00

    Hello @Fabian ,

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

    As you confirmed the guest agent is running on the new machine, you don't have to make any further changes on the guest agent files. As long as there are no issues with connectivity you don't have to worry.
    If you wish to continue with the new VM and remove old VM, there is no need to debug the issue any further.

    Important to note:
    When you deploy the VM from market place the guest agent is installed along with the OS. Sometimes there would be some issues during the updates that may cause VM agent to go unresponsive and shows not ready in status. In such cases, you can try to reinstall the guest agent as per the guidance available at the following link
    https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/update-linux-agent

    Hope this helps :)
    Please "Accept as Answer" and Upvote if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.

    1 person found this answer 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.