Interview Prep/Azure/Reliability, Cost and Migration

Dev and test environments run 24/7. How do you cut their cost?

IntermediateScenarioReliability, Cost and Migration
Answer

Situation read → Schedule them off outside working hours.

What I'd do →

  1. AKS: az aks stop nightly via a scheduled pipeline or Automation runbook; or scale user pools to zero
  2. VMs: auto-shutdown schedules (az vm auto-shutdown -g rg -n vm --time 2000), deallocate not just stop
  3. Smaller SKUs and Free tier AKS in dev
  4. Log Analytics daily cap in dev workspaces
  5. Azure Dev/Test pricing on eligible subscriptions

Why → Non-prod is idle about 70% of the week; scheduling is the cheapest big win.

Interview tip → "Stopped" in the OS still bills; "deallocated" doesn't.

Azure All Azure questions

More on Reliability, Cost and Migration