Linux VM Agent not ready. Status is Unknown.

Jessie 125 Reputation points
2024-12-03T13:26:54.1466667+00:00

Hello there,

I recently restored a vm from backup to a different resource group and the linux agent status status has been "unkown" for some time now.

I understand this happens when a vm in recently created and when a vm is deallocated but mine has been up for a while now.

So far I have tried installing the agent manually but no changes in the status.

az vm extension set --name AzureMonitorLinuxAgent --publisher Microsoft.Azure.Monitor --ids /subscriptions/xxxxxx/resourceGroups/rsg/providers/Microsoft.Compute/virtualMachines/ --enable-auto-upgrade true

What could be the problem?

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,490 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ashok Gandhi Kotnana 10,035 Reputation points Microsoft External Staff Moderator
    2024-12-03T15:27:17.9933333+00:00

    Hi Jessie,

    Welcome to Microsoft Q&A Forum, thank you for posting your query here!

    Please install the waagent on the Linux machine so that you can see the agent is ready and online, if it is agent already installed, please restart the waagent, please find the below documents how to install it.

    Please refer to these docs on how to install Azure VM agent on Linux: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux#installation

    To update the Azure Linux Agent on a VM:
    https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/update-linux-agent

    Install the Azure Virtual Machine Agent in offline mode:
    https://learn.microsoft.com/en-us/azure/virtual-machines/troubleshooting/install-vm-agent-offline

    let us know if any help, we will always help as you needed.!


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.