Interview Prep/Azure/Compute and App Platforms

What is a Virtual Machine Scale Set and how does autoscale work?

BeginnerConceptCompute and App Platforms
Answer

A VMSS manages a group of identical (or flexible) VMs that can scale in and out. Autoscale rules come from Azure Monitor autoscale settings: metric-based (CPU > 70% for 10 minutes → +2), schedule-based (scale up at 08:00 IST), with min/max/default counts and cool-downs.

az monitor autoscale create -g rg --resource vmss-web --resource-type Microsoft.Compute/virtualMachineScaleSets \
  -n as-web --min-count 2 --max-count 10 --count 2
az monitor autoscale rule create -g rg --autoscale-name as-web \
  --condition "Percentage CPU > 70 avg 10m" --scale out 2

Also configure automatic instance repairs with an application health probe or extension so unhealthy instances are replaced.

Azure All Azure questions Roadmap: Azure core services

More on Compute and App Platforms