A developer's laptop was stolen. They had `az login` sessions and kubeconfigs. What do you do?
AdvancedScenarioIdentity, Access and Governance
Answer
Situation read → Revoke sessions centrally, and check whether any static credentials were on the device.
What I'd do →
- Revoke the user's refresh tokens:
az rest --method post --url https://graph.microsoft.com/v1.0/users/<id>/revokeSignInSessions - Reset password, re-register MFA, mark device lost in Intune
- If AKS clusters still have local accounts, rotate cluster certificates:
az aks rotate-certs -g rg -n aks(causes API downtime; plan it) - Rotate any secrets the user had locally (storage keys, SP secrets)
- Review sign-in and Activity Logs for activity after the theft time
Why → Entra-backed access dies with the session; static credentials (admin kubeconfig, keys) don't. That is the argument for disabling local accounts.
Interview tip → Use this to argue for --disable-local-accounts on every cluster.
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