Virtual WAN
Basic vs Standard · virtual hubs · gateway scale units · hub routing and routing intent · NVAs in the hub · BGP peering
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Virtual WAN types and architecture
| Basic | Standard | |
|---|---|---|
| Hub type | Basic | Standard |
| Connectivity | Site-to-site VPN only | ExpressRoute, User VPN (P2S), site-to-site VPN, inter-hub and VNet-to-VNet transit through the hub, Azure Firewall, NVA in a virtual WAN |
| Hubs | Not meshed | Fully meshed automatically when the WAN is first set up |
| Hub router | None (routing status None) | One router per hub (up to 50 Gbps aggregate) |
| Gateway scale units | Can't be adjusted | Adjustable |
You can upgrade Basic to Standard, but you can't revert Standard to Basic. If a Basic WAN has pre-existing hub routes, delete them first, then upgrade.
- Virtual WAN is a hub-and-spoke architecture. Each Azure region you choose hosts one or more virtual hubs. A hub is a Microsoft-managed virtual network; you can create several hubs in the same region.
- The virtual WAN resource is a container: it's deployed in a region, but WANs are isolated from each other and can't share a hub. A WAN is global; the resource location is only for management.
- Spokes: VNets (via hub virtual network connections), branches (site-to-site VPN or SD-WAN), users (point-to-site/User VPN), and ExpressRoute circuits. One VNet connects to only one virtual hub.
- A hub gateway isn't a virtual network gateway. A spoke VNet connected to a hub can't have a virtual network gateway or an Azure Route Server, so remove any VPN or ExpressRoute gateway first. Spokes don't need their own gateways.
- Transit: VNet-to-VNet (local and global), VPN-to-ExpressRoute and branch-to-branch (enabled by default in the WAN Configuration; needs BGP) all go through the hub router. Directly peered spokes use the peering instead of the hub path.
- Resilience: hub services are deployed across Availability Zones where the region supports them (except Azure Firewall), and all gateways run active-active. For regional resilience, connect to more than one hub.
- Throughput per hub: VPN up to 20 Gbps, ExpressRoute up to 20 Gbps, User VPN up to 200 Gbps. Up to 1,000 connections (2,000 IPsec tunnels) per hub; a VPN gateway in a VNet is limited to 100 tunnels.
- Hub-to-hub traffic can use the Azure backbone. Cross-region VNets incur global VNet peering charges without any explicit global peering.
- ExpressRoute-to-ExpressRoute transit comes from Global Reach (traffic bypasses the hub). Routing intent with a private policy can send ER transit through a security appliance in the hub.
- Azure Virtual WAN hub vs Azure Route Server: both offer BGP peering for NVAs, but Route Server sits in a hub VNet you manage, while Virtual WAN is a zero-touch fully meshed hub service.
Creating a virtual hub
- You can create an empty hub and add gateways later, or create the hub and gateways together. Hub pricing starts as soon as the hub exists. A hub without a gateway takes about 5 to 7 minutes; with a gateway about 30 minutes.
- Hub address space can't be modified after creation. Minimum /24; /23 or larger recommended; /22 minimum with Azure Firewall. It must not overlap other hub address spaces in the WAN, on-premises networks or connected VNets. Pick the size for NVAs too (subnets for NVAs can't be resized).
- Create-hub settings: region, name, hub private address space, virtual hub capacity, and hub routing preference (default ExpressRoute).
- When the hub is created a virtual hub router is deployed. It manages all routing between gateways and VNets.
- Hub resource group: the portal needs hubs in the same resource group as the WAN; hubs in other resource groups are PowerShell only.
- Virtual WAN doesn't support ASN changes for hubs or gateways. A spoke VNet address space change syncs automatically (no overlap with other spokes).
- Routing status of a hub router: Provisioned, Provisioning, Failed or None. If the router is Failed but the hub resource succeeded, use Reset router (less than 10 minutes, rarely disruptive). Hub Reset doesn't reset gateways.
Hub capacity (routing infrastructure units)
| Routing infrastructure units | Aggregate throughput | Connected VMs |
|---|---|---|
| 2 (default) | 3 Gbps | 2,000 |
| 3 | 3 Gbps | 3,000 |
| 10 | 10 Gbps | 10,000 |
| 50 | 50 Gbps | 50,000 |
- Each extra unit beyond the default adds 1 Gbps and 1,000 VMs. The unit you choose at creation is the minimum capacity. Scale-out can take up to 25 minutes; the hub router also autoscales but never below your minimum.
- A single TCP flow above 1.5 Gbps can see degraded performance whatever the capacity. A hub accepts at most 10,000 routes from its connections.
- Routing infrastructure units size the hub router (VMs, aggregate throughput). Gateway scale units size the gateways. They're different settings.
Gateways and scale units
| Gateway | One scale unit | Maximum | Where you set it |
|---|---|---|---|
| Site-to-site VPN | 500 Mbps (two instances, each up to 500 Mbps) | 20 Gbps aggregate per hub | Hub, Site to site page |
| ExpressRoute | 2 Gbps | 10 units = 20 Gbps | Hub, ExpressRoute page |
| User VPN (point-to-site) | 0.5 Gbps and 500 connections at 1 unit; 10 Gbps and 10,000 at 20 units | 200 units = 100 Gbps and 100,000 connections | Hub, Point to site page |
| NVA (NVA infrastructure unit) | 500 Mbps | 2 to 80 units (vendor dependent) | NVA deployment |
- Each gateway type is configured separately. Plan VPN capacity from the aggregate needed by your branches (five branches at 10 Mbps need 50 Mbps at the hub).
- ExpressRoute gateway performance (per scale unit count): 1 unit = 2,000 Mbps, 200,000 packets per second, 14,000 connections per second; 5 units = 10,000 Mbps; 10 units = 20,000 Mbps. Unit 1 can see throughput variation during maintenance; a single TCP flow above 1.5 Gbps degrades.
- User VPN: above 20 scale units, extra pairs of gateway instances are added (each pair serves up to 10,000 more users). At 40 or more units, plan the client address pool. OpenVPN clients get a route limit of 1,000. Plan for downtime when you scale or change the P2S configuration.
- Changing the ExpressRoute gateway scale units: about 30 minutes; you may see TCP reconnects, and Private Endpoint connectivity can be affected.
- ExpressRoute connections to a hub: Local, Standard, Premium and Direct circuits. A Local circuit connects only to a gateway in its own region but can still reach spokes in other regions. Up to 4 circuits from the same peering location and 8 from different peering locations per hub, whatever the scale units.
- ExpressRoute connection settings: Routing weight (0 to 32000; higher preferred when the hub learns the same prefix from several circuits), Propagate default route, authorization key and peer circuit URI for circuits in other subscriptions (a key is valid for one connection). You can't set a weight on a VPN connection; Azure prefers ExpressRoute over VPN within a hub.
- FastPath in Virtual WAN: on by default for ExpressRoute Direct circuits when the hub ExpressRoute gateway has 5 or more scale units. It applies to VMs in spoke VNets directly connected to the hub in the same region.
- ECMP across circuits isn't enabled by default for a hub: creating a route map upgrades the hub to the software version that supports it (up to 2 circuits and 4 links).
- On-premises BGP can't use the ASNs reserved by Azure (public 8074, 8075, 12076; private 65515, 65517, 65518, 65519, 65520) or IANA ranges. The hub ExpressRoute gateway and circuit ASNs are fixed.
- Updating one ExpressRoute connection makes the others show Updating, but their connectivity isn't affected.
Virtual hub routing
| Concept | What it means |
|---|---|
| Route table | One or more routes: name, label, destination type, destination prefixes, next hop. Every hub has Default and None tables (neither can be deleted). |
| Association | A connection is associated with exactly one route table; traffic from it follows that table. Many connections can share one table. Default: all associate with Default. |
| Propagation | Connections propagate routes to one or more tables (the None table means nothing is propagated). Default: all propagate to Default. |
| Labels | Group route tables so a connection can propagate to many. The Default table has the built-in label Default; with no label specified, a VNet connection propagates to Default. |
| Static route | Route name, prefixes and a next-hop IP (for example an NVA in a spoke). Static routes win over dynamic routes for the same prefix. Don't use hub router IPs as next hop. |
- Create a route table: virtual hub, Route Tables, Create route table; set the routes (next hop is a VNet connection or Azure Firewall), labels, associations and propagations. Prefixes can be aggregated.
- Branch rules: all branch connections (P2S, S2S, ExpressRoute) should associate to the Default table and propagate to the same set of tables, so every branch learns the same prefixes.
- Virtual WAN can program a spoke route only if its prefix is less specific than the VNet prefix: it can't attract traffic between two subnets of the same VNet.
- Default route 0.0.0.0/0 is local to a hub and doesn't propagate between hubs. It doesn't originate in the hub; it's learned, for example from a firewall in the hub or a site with forced tunneling. The connection flag to propagate it is disabled by default for sites and ExpressRoute, enabled by default for VNet connections.
- A subnet with a user-defined route table needs Propagate gateway routes = Yes to receive hub routes.
- Hub accepts at most 10,000 routes; summarize with aggregation or route maps.
Routing intent and policies
- A hub can have at most one Internet traffic policy and one private traffic policy, each with one next hop (Azure Firewall, NVA or SaaS in the hub). The private policy sends all branch and VNet traffic, including inter-hub, through the next hop.
- An Internet policy makes Virtual WAN advertise 0.0.0.0/0 to all spokes, gateways and NVAs. Internet traffic must leave through the local hub's security solution. A hub without a security solution can't have routing policies; its branches and VNets can't reach the Internet via another hub's firewall.
- Routing intent manages associations and propagations for all connections, so WANs with custom route tables or customized policies can't use it. Up to 600 VNet address spaces can be directly connected to a hub that uses routing intent. Not available in Azure operated by 21Vianet.
- Forced tunneling: with a private policy, Internet traffic can be sent to the hub's security solution, which forwards it to an on-premises connection or an NVA advertising 0.0.0.0/0.
Hub routing preference and route maps
- Longest prefix match.
- Static routes from the hub route table over BGP routes.
- The hub routing preference: ExpressRoute (default), VPN or AS Path.
- ExpressRoute preference: local-hub routes over remote-hub routes; between ER and S2S VPN, ER wins if all routes are local, VPN wins if all go through remote hubs; then shortest AS path. VPN preference picks VPN over ER; AS Path picks the shortest AS path first.
- After an ER failover, VPN routes can stay preferred: have on-premises prepend the AS path on VPN and SD-WAN routes so they're longer than ExpressRoute routes.
- A route a hub advertises to another hub gets 65520-65520 prepended. Routes from hubs with routing intent private policies are always preferred over ER routes from hubs without it, so enable routing intent on all hubs to avoid asymmetric routing.
- Route maps let you summarize routes, filter, and modify BGP attributes (AS-PATH, community) on S2S, P2S, ExpressRoute and VNet connections.
Network virtual appliances and BGP peering
| Option | How it works | Notes |
|---|---|---|
| NVA in the hub (integrated) | Partner NVA deployed as an Azure Marketplace managed application, jointly managed by Microsoft and the vendor | Only listed partners; AZ aware and highly available; peers with the hub router; no direct access |
| NVA in a spoke VNet | Your appliance in a VNet connected to the hub; BGP peering with the hub router, or static routes to its IP | The spoke can't have a virtual network gateway |
- Hub NVA categories: connectivity (terminate VPN and SD-WAN, exchange routes by BGP), Next-Generation Firewall (inspect with routing intent), and dual-role. Not every Marketplace NVA qualifies, only partners listed in the NVA partner tables.
- You don't create Site, Site-to-Site connection or P2S connection resources for an NVA. You still create hub-to-VNet connections and ExpressRoute, VPN or User VPN connections.
- Deployment: Marketplace managed application creates a customer resource group and a managed resource group (deny-all assignment). Grant a user-assigned managed identity (system-assigned isn't supported) permissions such as
Microsoft.Network/virtualHubs/readandMicrosoft.Network/networkVirtualAppliances/write. - Capacity: one NVA infrastructure unit is 500 Mbps; 2 to 80 units, partner dependent. NVAs run n+1, so size for peak traffic and vendor numbers, not best-case tests.
- Hub size and NVAs: /23 or smaller gives 11 IPs for the NVA internal subnet and 11 for the external; /22 gives 27; /21 gives 59; /20 or larger gives 123. NVAs with more than 2 interfaces need /23. These subnets can't be resized.
- BGP peering to a spoke NVA: Virtual Hub, BGP Peers, Add: name, ASN, IPv4 address, and the VNet connection that hosts the peer. The hub shows two
virtualRouterIps; peer with both and advertise the same routes to both. - The spoke VNet must not have virtual network gateways. The hub learns spoke system routes when the connection is created, so they beat BGP-learned routes, which are overridden only by static routes. The bypass next hop IP setting doesn't apply to BGP-learned NVA routes.
- Static routes to an NVA IP in a spoke are the alternative to BGP: route name, prefixes and next hop IP in the connection or route table.
Exam Tips
Tick each tip once you can answer it without looking.
“Need ExpressRoute, User VPN, VNet-to-VNet transit through the hub or Azure Firewall in the hub” → Standard Virtual WAN. Trap: Basic supports site-to-site VPN only and its hubs aren't meshed; you can upgrade to Standard but never back.
“Hub address space is too small after the hub exists” → It can't be modified after creation: plan /23 or larger (/22 with Azure Firewall; /24 is the minimum). Trap: Don't assume you can resize it later; NVA subnets can't be resized either.
“Hub router must support more VMs and throughput” → Raise the hub capacity (routing infrastructure units): default 2 = 3 Gbps and 2,000 VMs. Trap: Gateway scale units size the gateways, not the hub router.
“Gateway scale unit sizes” → VPN 500 Mbps, ExpressRoute 2 Gbps (10 units = 20 Gbps), NVA infrastructure unit 500 Mbps. Trap: Each gateway type is configured on its own page of the hub.
“Connect a spoke VNet that already has a VPN or ExpressRoute gateway” → Remove the gateway first; spokes can't have a virtual network gateway or a Route Server. Trap: One VNet connects to only one hub.
“Hubs in a Standard WAN” → Fully meshed automatically, no setup or disabling. Trap: Hubs in a Basic WAN aren't meshed.
“Which table do VNet, VPN and ER connections use by default” → They associate with and propagate to the Default route table. Trap: A connection is associated with exactly one table; the None table propagates nothing.
“Send Internet and branch/VNet traffic through a firewall or NVA in the hub” → Routing intent: one Internet policy and one private policy per hub. Trap: WANs with custom route tables or customized policies can't use routing intent.
“A branch on hub 1 can't use the firewall in hub 2 for Internet access” → 0.0.0.0/0 doesn't propagate between hubs: each hub needs its own security solution. Trap: A hub without a security solution can't have routing policies.
“Prefer VPN routes over ExpressRoute (or the reverse) in the hub” → Hub routing preference: ExpressRoute (default), VPN or AS Path. Trap: Longest prefix match and static routes are evaluated before the preference.
“Steer hub traffic to an NVA in a spoke with fixed routes” → Static route with the NVA's IP as next hop. Trap: Don't use the hub router IPs as next hop; static routes beat dynamic ones.
“Spoke NVA must exchange routes dynamically with the hub” → BGP peer on the hub, to both virtualRouterIps. Trap: Peering with one router IP isn't enough; the spoke can't have a virtual network gateway.
“Run a third-party SD-WAN or firewall inside the hub” → Integrated NVA from a listed partner via Marketplace managed application. Trap: Not every Marketplace NVA can be deployed into the hub; you can't log in to the NVA directly.
“ExpressRoute Local circuit connected to a hub” → Only to the ExpressRoute gateway in its own region, yet spokes in other regions stay reachable. Trap: Local isn't limited in the spokes it reaches, only in the gateway region.
“Hub succeeded but routes can't be updated; routing status Failed” → Reset router (hub Reset doesn't touch gateways). Trap: This isn't a gateway reset and doesn't change gateway scale units.
“How many ExpressRoute circuits per hub gateway” → 4 from the same peering location, 8 from different locations. Trap: More scale units don't raise these limits.
Sources
- Azure Virtual WAN overview
- Virtual WAN FAQ
- About virtual hub settings
- About gateway settings for Virtual WAN
- Create a site-to-site connection using Virtual WAN
- About ExpressRoute connections in Virtual WAN
- Connect an ExpressRoute circuit to Virtual WAN
- About virtual hub routing
- How to configure virtual hub routing
- Virtual hub routing preference
- Configure Virtual WAN hub routing intent and routing policies
- About route maps
- About Network Virtual Appliances in the Virtual WAN hub
- Create a Network Virtual Appliance in the hub
- Configure BGP peering to an NVA (portal)
- Understanding Virtual WAN pricing
Checked against Microsoft Learn on November 13, 2026.