Explain hub-and-spoke topology.
IntermediateConceptNetworking
Answer
A hub VNet holds shared services: Azure Firewall, VPN/ExpressRoute gateway, Bastion, DNS Private Resolver. Each workload gets a spoke VNet peered to the hub. Spokes send 0.0.0.0/0 (and other spokes' ranges) to the firewall via UDR, so spoke-to-spoke and egress traffic is inspected centrally.
flowchart LR
ONP["On-premises"] --> GW["VPN or ExpressRoute gateway"]
subgraph HUB["Hub VNet"]
GW --> FW["Azure Firewall"]
end
FW --> S1["Spoke: shop-prod"]
FW --> S2["Spoke: data-prod"]
FW --> NET["Internet"]
Peering is not transitive, so the firewall is what makes spoke-to-spoke work.
More on Networking
What is a VNet and how does it compare to an AWS VPC?BeginnerHow many IP addresses does Azure reserve in each subnet?BeginnerWhat is a Network Security Group and how are its rules evaluated?BeginnerIf an NSG is on both the subnet and the NIC, how is traffic evaluated?AdvancedWhat are service tags and why use them in NSG rules?BeginnerWhat is an Application Security Group (ASG)?Intermediate