Build VM Scale Set autoscaling rules, upgrade policies, and instance repair.
Last verified: May 2026
Build VM Scale Set auto-scaling configs with upgrade policies, repair policies, and scheduled profiles.
Required Fields
nameresourceGroupsku.namesku.capacityautoscaleSettingsautoscaleSettings.minCountautoscaleSettings.maxCountOutput will appear here...Azure Virtual Machine Scale Sets (VMSS) let you deploy and manage a set of identical, auto-scaling VMs behind a load balancer. Configuration involves selecting the orchestration mode (Uniform for identical instances or Flexible for mixed configurations), defining autoscale rules based on metrics like CPU or custom metrics, setting upgrade policies (automatic, rolling, or manual), and configuring instance repair policies for automatic replacement of unhealthy VMs. The VMSS Config Builder helps you define scaling rules, upgrade policies, health probes, and instance protection settings for production-grade scale sets.
Your team has been running 30 always-on VMs to handle peak traffic that lasts only 4 hours/day. The builder generates a VMSS Flexible config with: min=5, max=30, target tracking on CPU at 60%. Scale-in cooldown 10 min, scale-out cooldown 5 min. Instance repair on with 30-min grace. The fleet now runs at avg ~12 instances during off-peak, scales to 25 during morning rush. Monthly cost drops from $2,400 (30 always-on) to ~$1,000. Plus, the auto-repair feature catches a stuck instance once a week that previously went unnoticed for hours.
Flexible orchestration is the right choice for new VMSS deployments in 2026. Uniform mode is being superseded — Microsoft is investing all new features in Flexible. Migrating existing Uniform VMSSs is non-trivial; greenfield Flexible avoids that future migration.
Set scale-out threshold lower than scale-in threshold by AT LEAST 30 percentage points. Scale out at 75% CPU, scale in at 40% — anything narrower causes oscillation as new instances briefly drop the avg below the scale-in threshold. The 'deadband' between thresholds is your stability margin.
Instance repair policies are the underused VMSS feature. Enable automatic repair with a 30-minute grace period after a health probe fails. The scale set replaces the unhealthy instance automatically — eliminating the all-too-common 'one bad instance is silently serving 500s for hours because no one noticed' incident.
The builder constructs Azure VMSS configurations: orchestration mode (Uniform or Flexible), VM profile (size, image, OS disk, networking, identity), autoscale settings (min/default/max instances, autoscale rules with metric/threshold/direction/cooldown), upgrade policy (manual/rolling/automatic with batch settings), and instance repair policy (enabled, grace period). Output is generated as az vmss + az monitor autoscale commands and Terraform azurerm_linux_virtual_machine_scale_set / azurerm_windows_virtual_machine_scale_set + autoscale_setting resources.
Was this tool helpful?
Disclaimer: This tool runs entirely in your browser. No data is sent to our servers. Always verify outputs before using them in production. AWS, Azure, and GCP are trademarks of their respective owners.