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.
More on Compute and App Platforms
What are the main VM families and how do you pick one?BeginnerAvailability sets vs availability zones vs VMSS flexible orchestration.IntermediateWhat are VMSS upgrade policies?IntermediateWhat are Spot VMs and where do they fit?IntermediateWhat is the temporary disk on a VM and why does it matter?BeginnerManaged disk types and when you pick each.Intermediate