Deploy a VM Scale Set with Linux VMs and Auto Scale

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

The following template deploys a Linux VM Scale Set integrated with Azure autoscale

Deploy To Azure Deploy To Azure US Gov Visualize

The template deploys a Linux VMSS with a desired count of VMs in the scale set. Once the VM Scale Sets is deployed, user can deploy an application inside each of the VMs (either by directly logging into the VMs or via a custom script extension)

The Autoscale rules are configured as follows

  • sample for CPU (\Processor\PercentProcessorTime) in each VM every 1 Minute
  • if the Percent Processor Time is greater than 50% for 5 Minutes, then the scale out action (add more VM instances, one at a time) is triggered
  • once the scale out action is completed, the cool down period is 1 Minute

Tags: Microsoft.Network/virtualNetworks, Microsoft.Network/publicIPAddresses, Microsoft.Network/loadBalancers, Microsoft.Compute/virtualMachineScaleSets, Microsoft.Insights/autoscaleSettings, ChangeCount