← all work

Azure landing zone: no public surface, every packet inspected

A Terraform reference implementation of a CAF-aligned Azure landing zone: hub-spoke networking with forced tunnelling through Azure Firewall Premium, PaaS reachable only through private endpoints, and Azure Policy guardrails that deny drift.

Role
Architecture, Terraform and policy as code
Period
2026
Status
Public reference implementation
  • Terraform
  • Azure Firewall Premium
  • IDPS
  • TLS inspection
  • Hub-spoke VNets
  • UDR
  • Private Endpoints
  • Private DNS
  • Azure Policy
  • Management Groups
Problem
Fast cloud migration leaves fragmented networks, public PaaS endpoints, over-privileged admins and firewall rules with no central egress logging.
Key decision
A hub that owns inspection and connectivity, user-defined routes that force all spoke traffic through it, private endpoints for every data service, and guardrails enforced as Azure Policy in Deny mode.
Result
A reviewable Terraform stack in which public Storage and Key Vault endpoints are refused by policy, and all egress passes TLS inspection and IDPS.

Architecture

Azure landing zone architectureHUB VNETSPOKE VNETCLIUsers / on-premExpressRoute · VPNEDGEGatewaySubnethybrid connectivityEDGEAzure Firewall PremiumTLS inspection · IDPS · t…SVCWorkload spokeUDR 0.0.0.0/0 → firewallDBPrivate endpointsStorage · Key Vault · SQLCIAzure Policy initiati…Deny public / unencrypted…SVCManagement groupsplatform · landing zonesAzure landing zone architectureCLIUsers / on-premExpressRoute · VPNEDGEGatewaySubnethybrid connectivityEDGEAzure Firewall PremiumTLS inspection · IDPS · threat intelCIAzure Policy initiati…Deny public / unencrypted / unapproved…SVCWorkload spokeUDR 0.0.0.0/0 → firewallSVCManagement groupsplatform · landing zonesDBPrivate endpointsStorage · Key Vault · SQL
Workload spokes have no direct Internet path: every packet is forced through Azure Firewall Premium in the hub. PaaS services are reachable only through private endpoints, and Azure Policy denies anything that drifts. Hover, tap or tab through the components; control flows are dashed.
Components and flows as text
ComponentKindTechnologyFlows out
Users / on-premclientExpressRoute · VPN→ GatewaySubnet: private connectivity
GatewaySubnetedgehybrid connectivity→ Azure Firewall Premium: inspected
Azure Firewall PremiumedgeTLS inspection · IDPS · threat intel—
Workload spokeserviceUDR 0.0.0.0/0 → firewall→ Azure Firewall Premium: all egress (forced tunnelling); → Private endpoints: private IP only
Private endpointsdatastoreStorage · Key Vault · SQL—
Azure Policy initiativepipelineDeny public / unencrypted / unapproved region⇢ Workload spoke: deny on drift
Management groupsserviceplatform · landing zones⇢ Azure Policy initiative: assignment scope

Trust boundaries: Hub VNet (GatewaySubnet, Azure Firewall Premium); Spoke VNet (Workload spoke, Private endpoints).

Decisions

  1. D-01accepted

    Forced tunnelling through the hub firewall

    Each spoke has a route table sending 0.0.0.0/0 to the Azure Firewall private IP, so egress and spoke-to-spoke traffic are inspected and logged in one place.

    Options considered

    • Per-spoke NSGs and NAT gateways: cheaper, but egress is invisible and rules drift apart.
    • Central firewall with forced routing: one place to inspect, log and allow-list.

    Trade-off accepted

    Firewall Premium is billed hourly and becomes a dependency for every spoke.

    terraform/network.tf ↗

  2. D-02accepted

    IDPS and threat intelligence in Deny, egress by FQDN allow-list

    Azure Firewall Premium runs IDPS and threat-intel filtering in Deny mode with TLS inspection, and outbound traffic is limited to an explicit FQDN allow-list.

    Options considered

    • Alert mode: nothing breaks, and nothing is stopped.
    • Deny mode: false positives surface and get tuned.

    Trade-off accepted

    New dependencies need an allow-list change before they work.

    terraform/firewall.tf ↗

  3. D-03accepted

    Guardrails as Azure Policy, not as a checklist

    Custom policy definitions deny public Storage and Key Vault endpoints, unencrypted disks and unapproved regions, grouped in an initiative and assigned by Terraform.

    Options considered

    • Audit-only policies and periodic reviews.
    • Deny effects that stop the deployment.

    Trade-off accepted

    Legitimate exceptions need an explicit exemption, which is itself reviewable.

    terraform/policy.tf ↗ · policies/ ↗

Failure modes

FailureDetectionHandlingEvidence
A new spoke is deployed without the forced routeEgress for that range is missing from firewall logsRoute tables are created by the same code as the spoketerraform/network.tf
A team creates a storage account with public accessAzure Policy deny eventThe deployment is refused before the resource existspolicies/

What I would change next

  • Add Privileged Identity Management for platform role assignments.
  • Add plan-time policy tests in CI before apply.

Evidence index

Links point to the public repository.