You must prevent anyone from creating public IPs in corp subscriptions, except the hub firewall.
IntermediateScenarioIdentity, Access and Governance
Answer
Situation read → Deny policy with a scoped exemption.
What I'd do →
- Assign a deny policy on
Microsoft.Network/publicIPAddressesat thecorpmanagement group - Create a policy exemption for the hub connectivity RG:
az policy exemption create -n hub-fw-pip --policy-assignment <assignmentId> \ --exemption-category Waiver --scope /subscriptions/<conn-sub>/resourceGroups/rg-hub \ --description "Azure Firewall needs a public IP" - Verify with a test
az network public-ip createin a spoke; expectRequestDisallowedByPolicy
Why → Exemptions are documented and auditable, unlike carving the hub out with ad hoc exclusions.
Interview tip → Mention AKS and App Gateway also want public IPs; design ingress before you deny.
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