Hands-on demo: provision an elastic Azure VM workload (VMSS, Flexible orchestration) behind an Application Gateway, define health signals, verify scaling behavior, and diagnose common misconfigurations.
- Azure CLI 2.60+ and an authenticated session (
az login)
| File | Purpose |
|---|---|
00-vars.sh |
Shared configuration (names, region, capacity, probe settings) |
01-provision.sh |
Create VNet, NAT gateway, Application Gateway, VMSS |
02-gateway-health.sh |
Check backend health, custom health probe, traffic distribution |
03-auto-scale.sh |
Autoscale profile, CPU rules, verify instance count and scale history |
04-auto-repair.sh |
Application Health extension, automatic instance repair, replacement |
05-diagnose.sh |
Break/fix two reversible misconfigurations |
99-cleanup.sh |
Delete resource group |
config/cloud-init.yaml |
Web app serving / (hostname) and /health |
health-extension.json |
Generated by 04-auto-repair.sh (gitignored, not a source file) |