question

FrancescoLavra-9046 avatar image
3 Votes"
FrancescoLavra-9046 asked PeterMorrow-2314 commented

VM agent status warning for VMs without an agent

I'm using Azure VMs without a VM agent. I followed the instructions at https://docs.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://docs.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-machinesazure-virtual-machines-extension
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm hitting the same issue, though in my case I am running cloud-init and a python script to "report ready" back to the Azure control plane.

0 Votes 0 ·

0 Answers