Virtual Machine Scale Sets in 60 seconds
ComputeIaaSAWS: EC2 Auto Scaling
What it is
A group of identical VMs that Azure can add and remove automatically with autoscale rules, spread across fault domains or availability zones.
Simulate it »✅ Use it when
- Web tiers with changing traffic
- Batch processing that needs many identical workers
- High availability across zones
🚫 Not the best fit when
- A single special-purpose server
- Apps that can move to PaaS
💰 Price feel: ●●○○ Low
Free service; you pay for each VM instance (e.g. 3 × B2s ≈ $105/month).
Illustrative pay-as-you-go list prices at approximate exchange rates. Use the Azure pricing calculator for real quotes.
Simulate it
🖱️ Drag to rotate · scroll or pinch to zoom
Elasticity: autoscale
Turn on autoscale with a rule: add a server when CPU > 70%, remove one when CPU < 30%. Move the slider and watch Azure match servers to demand, and the bill fall when users leave.
🤔 What happens if…
Read this tour as text
- One server, normal day. One VM serves the website. CPU is comfortable. Use the Users slider to change the traffic.
- A traffic spike. A sale starts and visitors flood in. One server is overloaded, so pages get slow or fail.
- Scale up (vertical). Scaling up means a bigger server: more CPU and memory. It usually needs a restart, and there is always a largest size.
- Scale out (horizontal). Scaling out means more servers behind a load balancer. No restart, and almost no limit.
- Elasticity: autoscale. Turn on autoscale with a rule: add a server when CPU > 70%, remove one when CPU < 30%. Move the slider and watch Azure match servers to demand, and the bill fall when users leave.
- Serverless: scale to zero. With serverless (Azure Functions) there are no servers to manage. Each event runs a function instance, and with no events nothing runs and nothing is billed.
- Bill shock: the forgotten VM. A developer creates a D4s v5 test VM on Monday and forgets it. A running VM is billed every hour, 24/7, used or not. Fast-forward a month, then try again with auto-shutdown at 7 PM and weekends off.