Advanced autoscale configuration using Resource Manager templates for VM Scale Sets | Microsoft

Advanced autoscale configuration using Resource Manager templates for VM Scale Sets

https://github.com/Azure/azure-quickstart-templates/tree/master/201-vmss-windows-autoscale

Autoscale a Windows VM Scale Set

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

The template deploys a Windows 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