Teams keep creating resources in random regions and without tags. How do you stop it?
BeginnerScenarioIdentity, Access and Governance
Answer
Situation read → Governance belongs in Azure Policy at management group scope, not in a wiki.
What I'd do →
- Assign built-in "Allowed locations" (and "Allowed locations for resource groups") with
centralindiaandsouthindiaon the landing zones management group - Assign "Require a tag on resource groups" for
owner,env,costcenter - Assign "Inherit a tag from the resource group if missing" (Modify) for each tag, then remediate existing resources:
az policy remediation create -n inherit-owner --policy-assignment inherit-owner-tag \ --resource-discovery-mode ReEvaluateCompliance - Start new deny policies in
Auditfor a week, review compliance, then switch toDeny
Why → Policy enforces at ARM for every tool, so portal clicks, CLI and Terraform are all covered.
Interview tip → Rolling out deny policies via audit first shows you care about not breaking teams.
More on Identity, Access and Governance
A new developer joins and needs to deploy to the dev resource group only. How do you give access?BeginnerYour GitHub Actions workflow uses a client secret stored in a repo secret. Security wants it gone. What do you do?BeginnerAuditors ask "who has Owner on production, and why?" How do you answer and fix it?IntermediateA VM application needs to read blobs from one container. How do you set up access without keys?IntermediateA contractor needs temporary read access to logs for two weeks. How do you handle it?BeginnerYou need to let an app team create their own role assignments for their identities, without giving them Owner.Advanced