An Azure Policy in Deny mode suddenly blocks an urgent production fix. What do you do?
IntermediateScenarioIdentity, Access and Governance
Answer
Situation read → Don't delete the assignment. Create a narrow, expiring exemption and fix the root cause.
What I'd do →
- Read the policy assignment ID from the
RequestDisallowedByPolicyerror - Create an exemption scoped to the single resource or RG with
--expires-ona day or two out - Ship the fix, then decide whether the policy or the deployment needs changing
- Feed it back: policy authors add the case to tests; app team adjusts templates
Why → Exemptions keep the audit trail and expire on their own; deleted assignments tend to stay deleted.
Interview tip → Mention --expires-on; it shows you've done this under pressure before.
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?IntermediateTeams keep creating resources in random regions and without tags. How do you stop it?BeginnerA contractor needs temporary read access to logs for two weeks. How do you handle it?Beginner