Interview Prep/Azure/Identity, Access and Governance

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 →

  1. Assign a deny policy on Microsoft.Network/publicIPAddresses at the corp management group
  2. 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"
    
  3. Verify with a test az network public-ip create in a spoke; expect RequestDisallowedByPolicy

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.

Azure All Azure questions Roadmap: Azure core services

More on Identity, Access and Governance