Why is my VMSS AMA in the 'provisioning failed' state?

Simon Haines 0 Reputation points
2025-11-17T02:07:55.61+00:00

My VMSS is showing 'provisioning failed' after deploying the Azure AMA for linux. Syslog entries are also showing errors for /var/lib/waagent/Microsoft.EnterpriseCloud.Monitoring.OmsAgentForLinux-1.19.0 which is not installed.

Please describe how I can remove all extensions from my VMSS except for the 'CustomScript' and the 'AzureMonitorLinuxAgent'.

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
{count} votes

1 answer

Sort by: Most helpful
  1. Manish Deshpande 1,170 Reputation points Microsoft External Staff Moderator
    2025-11-17T02:35:13.5033333+00:00

    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.

    0 comments No comments

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.