Auditors ask "who has Owner on production, and why?" How do you answer and fix it?
IntermediateScenarioIdentity, Access and Governance
Answer
Situation read → Standing Owner access is the finding. You need an inventory now and PIM going forward.
What I'd do →
- Inventory, including inherited assignments:
az role assignment list --role Owner --scope /subscriptions/<prod-sub> --include-inherited \ --query "[].{who:principalName, type:principalType, scope:scope}" -o table - Expand groups and identify service principals with Owner (pipelines rarely need it)
- Convert human Owner assignments to PIM-eligible with approval, MFA and a 2–4 hour activation limit
- Replace pipeline Owner with Contributor plus a constrained
Role Based Access Control Administratorcondition if it must assign roles - Schedule quarterly access reviews on the privileged groups
Why → PIM gives auditors a justification and approval trail per activation, and drops the attack surface to near zero most of the time.
Interview tip → "Zero standing access to prod" is the phrase to use.
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?BeginnerA 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?BeginnerYou need to let an app team create their own role assignments for their identities, without giving them Owner.Advanced