Share via

VM agent status warning for VMs without an agent

Francesco Lavra 21 Reputation points
2022-01-11T10:49:35.613+00:00

I'm using Azure VMs without a VM agent. I followed the instructions at https://learn.microsoft.com/en-us/azure/virtual-machines/linux/no-agent to make the VMs "report ready", and I know this is working because VM instance status in the Azure portal shows as "Running" (without the above step, VMs remain stuck in "Creating" status). To create a VM, instead of the Azure command line client I'm using the SDK for Go (API version 2020-06-01), and in the compute.OSProfile struct passed to the VM client CreateOrUpdate() function I'm setting AllowExtensionOperations to false and using a compute.LinuxConfiguration struct where ProvisionVMAgent is set to false.
The problem is that in the VM overview page in the Azure portal there is a "<vmname> virtual machine agent status is not ready. Troubleshoot the issue" warning shown at the top of the page; if I click on the warning, the screen that appears reports "VM Extension Issues" (with no further information). Why is there such a warning when the VM has been explicitly configured to not have a VM agent? Following the information at https://learn.microsoft.com/en-us/azure/virtual-machines/linux/disable-provisioning, I verified that all VM extensions are disabled (az vm extension list returns an empty list).
Is there anything else that should be done in order to make the above warning go away?

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.