Automatic Extension Upgrade for virtual machines and scale sets in Azure
By: Date: 18/09/2025 Categories: azure Tags:

In Microsoft Azure, Automatic Extension Upgrade ensures that VM extensions are automatically updated to the latest minor version without manual intervention. This helps keep virtual machines and scale sets secure, stable, and compliant.

It applies to:

  • Azure Virtual Machines
  • Azure Virtual Machine Scale Sets (VMSS)

Prerequisites

Before enabling automatic upgrades:

  • VM or VMSS must already have extensions installed
  • Extensions must support automatic upgrade
  • VM must be in running state
  • For VMSS, orchestration mode must be Uniform or Flexible

Supported extensions

To check if your extensions are supported for automatic upgrade, view Automatic Upgrade status on Azure Portal – Extension blade.

Following are popular extensions supported for automatic upgrades (and more are added periodically):

PublisherType
Microsoft.Azure.Automation.HybridWorkerHybridWorkerForLinux
Microsoft.Azure.Automation.HybridWorkerHybridWorkerForWindows
Microsoft.Azure.AzureDefenderForSQLAdvancedThreatProtection.Windows
Microsoft.Azure.AzureDefenderForSQLVulnerabilityAssessment.Windows
Microsoft.Azure.AzureDefenderForServersMDE.Linux
Microsoft.Azure.AzureDefenderForServersMDE.Windows
Microsoft.Azure.ChangeTrackingAndInventoryChangeTracking-Linux
Microsoft.Azure.ChangeTrackingAndInventoryChangeTracking-Windows
Microsoft.Azure.DiagnosticsLinuxDiagnostic
Microsoft.Azure.Extensions.EdpLinuxHibernateTestExtension
Microsoft.Azure.Extensions.EdpWindowsHibernateTestExtension
Microsoft.Azure.FleetDiagnosticsFleetDiagnosticsForWindows
Microsoft.Azure.GenevaGenevaMonitoring
Microsoft.Azure.KeyVaultKeyVaultForLinux
Microsoft.Azure.KeyVaultKeyVaultForWindows
Microsoft.Azure.LabservicesAgent.Linux
Microsoft.Azure.LabservicesAgent.Windows
Microsoft.Azure.MonitorAzureMonitorLinuxAgent
Microsoft.Azure.MonitorAzureMonitorWindowsAgent
Microsoft.Azure.Monitoring.DependencyAgent.EDPDependencyAgentLinux
Microsoft.Azure.Monitoring.DependencyAgent.EDPDependencyAgentWindows
Microsoft.Azure.Monitoring.DependencyAgentDependencyAgentLinux
Microsoft.Azure.Monitoring.DependencyAgentDependencyAgentWindows
Microsoft.Azure.NetworkWatcherNetworkWatcherAgentLinux
Microsoft.Azure.NetworkWatcherNetworkWatcherAgentWindows
Microsoft.Azure.Networking.DNSDNSClientCache
Microsoft.Azure.SCOMMIGatewayServer
Microsoft.Azure.SCOMMIWindowsAgent
Microsoft.Azure.Security.AntimalwareSignatureAntimalwareConfiguration
Microsoft.Azure.Security.DsmsDSMSForWindows
Microsoft.Azure.Security.LinuxAttestationGuestAttestation
Microsoft.Azure.Security.MonitoringAzureSecurityLinuxAgent
Microsoft.Azure.Security.MonitoringAzureSecurityWindowsAgent
Microsoft.Azure.Security.WindowsAttestationGuestAttestation
Microsoft.Azure.Security.WindowsCodeIntegrityCodeIntegrityAgent
Microsoft.Azure.ServiceFabricServiceFabricLinuxNode
Microsoft.Azure.WatsonWatsonLinuxAgent
Microsoft.Azure.WorkloadsMonitoringExtensionLinux
Microsoft.Azure.WorkloadsMonitoringExtensionWindows
Microsoft.CPlat.CoreLinuxHibernateExtension
Microsoft.CPlat.CoreWindowsHibernateExtension
Microsoft.CPlat.ProxyAgentProxyAgentLinux
Microsoft.CPlat.ProxyAgentProxyAgentWindows
Microsoft.EnterpriseCloud.MonitoringMicrosoftMonitoringAgent
Microsoft.EnterpriseCloud.MonitoringOmsAgentForLinux
Microsoft.GuestConfigurationConfigurationForLinux
Microsoft.GuestConfigurationConfigurationForWindows
Microsoft.ManagedServicesApplicationHealthLinux
Microsoft.ManagedServicesApplicationHealthWindows
Microsoft.OSTCExtensionsDSCForLinux
Microsoft.Sentinel.AzureMonitorAgentExtensionsMicrosoftDnsAgent
Microsoft.SqlServer.ManagementSqlIaaSAgent
Microsoft.SqlServer.ManagementSqlIaaSAgentLinux

Enable Automatic Extension Upgrade on Azure Virtual Machines

Step 1: Open the Virtual Machine

  1. Sign in to the Azure Portal
  2. Navigate to Virtual Machines
  3. Select your target VM

Step 2: Go to Extensions + applications

  1. In the left menu, select Extensions + applications
  2. Review installed extensions

Step 3: Enable Automatic Upgrade

  1. Select an extension (e.g., Azure Monitor Agent)
  2. Click Settings
  3. Set Automatic upgrade = On
  4. Click Save

Azure will now automatically apply minor version updates when released.

Step 4: Verify Upgrade Status

  • Check Extension status
  • Review Activity Log
  • Monitor extension version changes over time

Enable Automatic Extension Upgrade on Virtual Machine Scale Sets (VMSS)

Step 1: Open the Scale Set

  1. Azure Portal → Virtual Machine Scale Sets
  2. Select your VMSS

Step 2: Navigate to Extensions

  1. Select Extensions
  2. Choose an existing extension or add a new one

Step 3: Enable Automatic Upgrade

  1. Set Automatic upgrade = Enabled
  2. Save the configuration

Step 4: Configure Upgrade Policy (Recommended)

  1. Go to Upgrade policy
  2. Choose one:
    • Automatic – Azure upgrades instances automatically
    • Rolling – Controlled rollout with health checks
    • Manual – You trigger upgrades

✔ Rolling is recommended for production workloads

Step 5: Monitor Extension Rollout

  • View Instance status
  • Check Health probes
  • Review Activity logs

Difference between EnableAutomaticUpgrade and AutoUpgradeMinorVersion

AutoUpgradeMinorVersion

  • This property applies during VM creation and when upgrading the VM with a new configuration.
  • When set to true, the latest minor version of the extension is automatically installed on the VM.
  • It overrides the TypeHandlerVersion with the latest stable minor version available.
  • During a VM configuration upgrade, if a new minor version is available, it is treated as a configuration change, and the extension is reinstalled with the latest minor version.
  • This ensures newly created VMs stay up to date with the latest stable minor extension version.
  • To manually set the extension to a specific version, set this property to false.

EnableAutomaticUpgrade

  • This property applies to existing VMs and does not affect the version installed during VM creation.
  • After VM creation, if the VM is not running the latest minor version of the extension, enabling this property triggers an automatic upgrade.
  • Upgrades occur without causing a VM reboot and are rolled out in a safe, rolling manner. Failed upgrades are immediately rolled back to maintain high availability and reliability.
  • This feature ensures existing VMs remain secure and up to date by automatically updating them to the latest minor version.

Reference: Automatic Extension Upgrade for virtual machines and scale sets in Azure