Interview Prep/Azure/Identity, Access and Governance

Security wants all Azure resource changes in prod to go through code. How do you enforce it?

AdvancedScenarioIdentity, Access and Governance
Answer

Situation read → Remove human write paths, keep a break-glass path, and detect drift.

What I'd do →

  1. Give humans Reader in prod; write roles only via PIM with approval for emergencies
  2. Pipelines deploy with federated identities from protected branches and environments with approvals
  3. For Bicep, use deployment stacks with --deny-settings-mode denyWriteAndDelete, excluding the pipeline and break-glass identities
  4. Nightly drift detection (terraform plan -detailed-exitcode or what-if) that opens a ticket on changes
  5. Alert on Activity Log writes in prod by any caller that isn't the pipeline identity

Why → Enforcement plus detection: PIM handles emergencies, everything else is reviewed in PRs.

Interview tip → Always keep a break-glass path in the answer; "nobody can change prod" is not a real design.

Azure All Azure questions Roadmap: Azure core services

More on Identity, Access and Governance