Hello Simon Haines
The VMSS is in “Provisioning failed” state because:
- Residual or failed extensions (especially legacy OMS/MMA) conflict with AMA (Azure Monitor Agent).
- Other failed extensions block provisioning.
Please try performing this steps provided below.
- Go to Azure Portal → VMSS → Instances → Extensions + applications.
Identify all extensions except:
- CustomScript
- AzureMonitorLinuxAgent
For each unwanted extension:
- Select it → Uninstall.
- Confirm AMA (Azure Monitor Linux Agent) shows Provisioning succeeded.
- Validate Data Collection Rule (DCR) is correctly associated with the VMSS.
You can also try running the commands
- List all extensions
az vmss extension list \
--resource-group <ResourceGroupName> \
--vmss-name <VMSSName>
- Remove all unwanted extensions
az vmss extension delete \ --resource-group <ResourceGroupName> \ --vmss-name <VMSSName> \ --name <ExtensionName> - Repeat for each extension you want to remove.
- Verify AMA is healthy
az vmss extension show \ --resource-group <ResourceGroupName> \ --vmss-name <VMSSName> \ --name AzureMonitorLinuxAgent - Once you are done with this steps please confirm if only CustomScript and AzureMonitorLinuxAgent remain.
- No extensions show Failed or Transitioning.
- If you have any questions please reply back we are happy to assist you.
Thanks,
Manish Deshpande.