D4 · Infrastructure

Network Design (Hub-Spoke)

Network topology is the foundation of every landing zone. The AZ-305 evaluates design, when to scale to , and how routing (UDRs) forces traffic through the central firewall.

Icon-networking-61

VNets, subnets and addressing

Design rules

  • • A lives in ONE region and subscription; RFC 1918 address space
  • • No overlap of ranges with on-prem or with VNets that will be connected — a classic irreversible mistake
  • • Azure reserves 5 IPs per subnet (.0, .1, .2, .3, broadcast)
  • • Dedicated, fixed-name subnets: GatewaySubnet, AzureFirewallSubnet, AzureBastionSubnet
  • • Plan for growth: a /16 per VNet with /24 subnets is a typical starting point

Segmentation by subnet

  • • NSGs per subnet (microsegmentation by tier: web/app/db)
  • • Subnet delegation for services that require it (App Service VNet integration, Container Apps...)
  • • Service endpoints vs private endpoints (detailed under Connectivity)
  • • Centralized IPAM with Azure Virtual Network Manager to avoid overlaps at scale
Icon-networking-61

Peering and topologies

VNet peering connects two VNets over the Microsoft backbone: minimal latency, no gateways or extra encryption needed. Global peering = across regions. Not transitive: A↔B and B↔C does not imply A↔C — the reason the hub with a shared firewall/gateway exists.

🌐Árbol de decisión — Topología de red

Single VNet · Hub-Spoke · Virtual WAN · Mesh

Interactivo

Pregunta 1

¿La arquitectura necesita más de una VNet (múltiples equipos, workloads o suscripciones aislados)?

💡 Señal single VNet: organización pequeña, un solo workload, subnets por tiers (web/app/db), sin requisito de aislamiento fuerte entre equipos

TopologyWhen
Single VNet with subnetsSmall organization, one workload, one region
Hub-SpokeThe enterprise standard: centralized shared services, per-workload isolation
Virtual WAN (managed hub)Many regions + many branches: Microsoft manages the hub and routing
Mesh (full peering)A few VNets that all talk to each other; automated with Virtual Network Manager
Icon-networking-84

Hub-Spoke in detail

Interactive

🏛️Why use Hub-Spoke?

The Hub-Spoke pattern centralizes Firewall, VPN Gateway, Bastion, and DNS in one hub VNet. Each team has its own isolated spoke (VNet). All traffic between spokes passes through the Firewall — centralized control without duplicating infrastructure.

On-prem → HubHub → Spokes
HUB VNetPeeringPeeringPeeringOn-premCorporate networkIcon-networking-63VPN GatewayIPSec · BGPIcon-networking-84FirewallL4 / L7 · IDPSBastionSecure RDP/SSHIcon-networking-61Spoke DevDev VNetIcon-networking-61Spoke ProdProduction VNetIcon-networking-61Spoke HRSensitive-data VNetIcon-networking-64Private DNS — zone shared by all VNets

🛡️ Centralized security

Azure Firewall in the hub inspects all traffic between spokes. There is no direct spoke-to-spoke communication without going through the Firewall.

🔒 Secure admin access

Azure Bastion enables RDP/SSH to VMs in any spoke straight from the browser, without exposing public IPs on any VM.

📡 Shared DNS

A single private DNS zone in the hub resolves internal names for every VNet with no extra per-spoke configuration.

The HUB contains (shared services)

  • • VPN/ExpressRoute Gateway (on-prem connectivity)
  • • / NVA (centralized inspection)
  • • Azure Bastion (administrative access)
  • • DNS (Private Resolver / private DNS)
  • • Operated by the platform team (Connectivity subscription)

The SPOKES contain

  • • Workloads isolated from each other (peered only to the hub)
  • • Each spoke can be a different subscription/team
  • • Spoke↔spoke: through the hub's firewall (UDRs)
  • • On-prem→spoke: gateway transit (use remote gateway on the spoke, allow gateway transit on the hub)

Benefits the exam expects you to cite

A single shared gateway and firewall (cost), isolation between workloads (security), centralized management of north-south and east-west traffic (governance), and growth by adding spokes without touching the hub (scale).

Virtual WAN — when to make the jump

Manual Hub-Spoke

  • •You build the hub yourself: gateways, firewall, UDRs, peerings
  • •Full control and lower cost at small scale
  • •Good for 1-2 regions and dozens of spokes

Virtual WAN

  • •Hubs MANAGED by Microsoft with automatic transitive routing (any-to-any)
  • •Scale: thousands of VPN branches, integrated SD-WAN, ER + VPN + P2S in the same hub
  • •Secured virtual hub = built-in Firewall (with Firewall Manager)
  • •Signal: "30 branches + 4 regions + automatic routing" → vWAN

Routes: UDRs and forced tunneling

User-Defined Routes

  • • Route table associated with subnets; overrides system routes
  • • Central pattern: 0.0.0.0/0 → next hop: Azure Firewall on the spokes (all egress inspected)
  • • Spoke→spoke also via the firewall with specific UDRs
  • • Priority: UDR > BGP > system routes

Related cases

  • • Forced tunneling: 0.0.0.0/0 towards on-prem over VPN/ER — all internet traffic exits through the datacenter (compliance)
  • • Azure gives internet egress by default (default outbound is being retired — design explicitly with a NAT Gateway or Firewall)
  • • NAT Gateway: scalable, predictable SNAT egress for subnets (no inspection)

Decision table

RequirementDesign
Isolated workloads sharing a firewall and gatewayHub-spoke
Spokes use the hub's gatewayGateway transit + use remote gateways
All outbound traffic from spokes inspectedUDR 0.0.0.0/0 → Azure Firewall
Spoke A talks to spoke B in a controlled wayUDRs via the hub firewall (non-transitive peering)
40 branches + 5 regions + automatic routingVirtual WAN (secured hubs)
VM internet traffic must exit through the on-prem datacenterForced tunneling
Predictable outbound IPs for a partner's whitelistNAT Gateway on the subnet
Connect VNets across different regionsGlobal VNet peering (or vWAN)
Manage topology/security for 100 VNets at scaleAzure Virtual Network Manager

Did you get this topic?

Test what you just learned

A company has 12 workload VNets in one region, ExpressRoute connectivity to on-premises, and requires that ALL traffic (spoke-spoke, spoke-internet, spoke-onprem) be inspected by a central firewall while minimizing gateway cost. What design do you propose?

Ready to test "Network Design (Hub-Spoke)"?

Put what you learned to the test with original AZ-305 exam questions.

Start AZ-305 mock exam

Unlimited mock exams with the Pro plan

Log in to track your progress.