Interview Prep/Azure/Reliability, Cost and Migration

You inherit an Azure estate with no IaC. How do you bring it under control?

AdvancedScenarioReliability, Cost and Migration
Answer

Situation read → Inventory, prioritise, import incrementally, lock down.

What I'd do →

  1. Inventory with Azure Resource Graph: az graph query -q "Resources | summarize count() by type, resourceGroup"
  2. Prioritise prod critical resources
  3. Export with aztfexport per RG; clean up into modules; import blocks
  4. Achieve "no changes" plan, then make the pipeline the only write path
  5. Policy for guardrails; drift detection

Why → Importing is incremental; a clean plan proves code matches reality before you depend on it.

Interview tip → Mention Resource Graph; it's the fastest way to see everything.

Azure All Azure questions

More on Reliability, Cost and Migration