Business Challenge
#83 left a problem unsolved. If a third-party firewall or SD-WAN appliance is the next hop for your traffic, somebody has to tell every subnet about every route that appliance knows — and keep telling it, as the appliance learns new prefixes and as virtual networks are added. The manual answer is user-defined routes, maintained per subnet, updated by hand or by a pipeline. #78 covered that mechanism and its ceiling.
Route Server is the managed answer: “a fully managed Azure service that simplifies dynamic routing between network virtual appliances (NVAs) and Azure virtual networks… eliminating the need for manual route table configuration and maintenance.” Your appliance speaks BGP to it, and it programs what it learns into the Azure software-defined network so the VMs just know.
Where designs go wrong is in what people expect to get for that. The name says server; the resource type says hub. Both are misleading.
It moves routes. It never moves packets.
“Azure Route Server only exchanges BGP routes with your network virtual appliance (NVA)… The data traffic goes directly from the NVA to the destination virtual machine (VM) and directly from the VM to the NVA.”
So it is not a router, not a gateway, and not in the path. It also “doesn't store customer data”, which follows from the same fact. And despite being “a Microsoft.Network/virtualHubs resource configured with the Route Server SKU”, the documentation is explicit: “it isn't an Azure Virtual WAN virtual hub.”
Architecture
The limits, and the one that is not what it seems
| Resource | Limit per deployment |
|---|---|
| BGP peers | 16 |
| Routes each BGP peer can advertise | 4,000 — exceed it and “the BGP session gets dropped” |
| VMs in the virtual network, including peered | 50,000 |
| Virtual networks supported | 500 |
| Total on-premises and Azure VNet prefixes | 10,000 |
| Routes towards ExpressRoute with branch-to-branch | 1,000 |
Sixteen peers at 4,000 routes each means a deployment can be offered 64,000 routes before any individual session is torn down. That sounds generous until you read the 1,000-route ceiling in the last row: a single peer may advertise four times what the ExpressRoute circuit will carry once branch-to-branch is on.
The 4,000-route limit will drop you at 2,001
“When Route Server process BGP route updates, this limit is calculated as the number of current routes learned from a BGP peer plus the number of routes coming in the BGP route update. For example, if an NVA initially advertises 2001 routes to Route Server and later readvertises these 2001 routes in a BGP route update, the Route Server calculates this as 4,002 routes and tears down the BGP session.”
So the practical ceiling for an appliance that readvertises its full table is half the published number. An SD-WAN appliance that does a full refresh on reconvergence — which is normal behaviour — needs to stay under 2,000 routes, not 4,000. This is the kind of limit that holds for a year and then fails during an unrelated incident, when the appliance reconverges and the route count has quietly grown.
The capacity model is worth understanding before the bill arrives. “By default, an Azure Route Server is deployed with a capacity of two routing infrastructure units… supports 4,000 connected VMs”, and more units add capacity “in increments of 1,000 VMs” at “$0.10/hour in the United States” each. Reaching the 50,000-VM ceiling from the 4,000-VM default therefore takes forty-six additional units — so the VM count is not a free limit, it is a priced one, and the gap between default and maximum is a real line item.
Why This Architecture Holds Up
Because it will not do the thing most people first ask it to do
The most common hope for Route Server is “use BGP instead of user-defined routes to send subnet-to-subnet traffic through the firewall”. The answer is no, and the reason is one you have already met in this series:
“Azure Route Server uses BGP to advertise routes. System routes for traffic related to virtual network, virtual network peerings, or virtual network service endpoints, are preferred routes, even if BGP routes are more specific. You must continue to use user-defined routes (UDRs) to override system routes, and you can't utilize BGP to quickly fail over these routes.”
That is the same system-route precedence that #103 and #104 both ran into from other directions. The consequence here is specific and expensive: for inter-subnet steering you “must continue to use a third-party solution to update the UDRs via the API in a failover situation, or use an Azure Load Balancer with HA ports mode.” Route Server does not remove the load balancer from the #83 pattern — it removes the per-spoke route maintenance.
The documentation does offer a workaround and then talks you out of it: one subnet per spoke virtual network, all spokes peered to a hub. “This design is very limiting and needs to take into scaling considerations and Azure's maximum limits on virtual networks vs subnets.” Honest, and correct.
Because the ASN is 65515 and that is a trap in two directions
Route Server uses ASN 65515 by default, supports only 16-bit ASNs, and requires that your NVA use a different ASN. The reserved list is worth copying into a design document: Azure reserves public ASNs 8074, 8075, 12076 and private 65515, 65517, 65518, 65519, 65520; IANA reserves 23456, 64496–64511 and 65535–65551.
65515 in a received AS path means the route disappears
“If an NVA advertises a route to Azure Route Server that already contains 65515 in the BGP AS_PATH attribute, Azure Route Server identifies its own ASN in the AS path and rejects the route as part of standard BGP loop prevention behavior. As a result, the route is not installed or propagated.”
This is standard BGP and it is still a surprise, because 65515 is also the ASN Azure VPN Gateway must use to work with Route Server — “Azure VPN gateway must be configured in active-active mode and have the ASN set to 65515.” So the number appears in two places in your own topology, and any path that transits one before reaching the other loses its routes silently. No error, no session drop: the prefix is simply absent.
One related asymmetry for anyone tuning path selection across a hybrid edge: AS path prepending on an NVA towards Route Server does not reach your on-premises routers. “When ExpressRoute advertises routes to on-premises, it removes the private BGP ASN information. On-premises receives the prefix with AS 12076.” Your prepends are invisible on the far side.
Because high availability is something you configure, not something you get
Route Server is “a service designed with high availability” with “zone-level redundancy” in regions that support zones — and that redundancy only reaches your traffic if you peered to both halves of it:
“Yes, you must peer each NVA instance with both instances of Route Server to ensure that Route Server successfully receives routes and to configure high availability. You must also advertise the same routes to both instances.” Microsoft also recommends “at least two NVA instances” peered to both.
The reason is in the next paragraph, and it is the part that makes this non-optional: “During Route Server maintenance events, BGP peering might go down between your NVA and one of Route Server's instances.” Combined with “Currently, you can't get advanced notification for Azure Route Server maintenance”, a single-peered appliance will lose its routes at a time nobody can predict and nobody warned you about. Peering both instances is the whole mitigation.
Two behaviours to know for the steady state. When the same route arrives from more than one NVA with equal AS path length, Route Server “programs multiple copies of the route, each with a different next hop” and the VM host uses ECMP — which is the same primitive the azw-016 roundup found arriving for user-defined routes, here without the feature flag. And on a single ExpressRoute circuit advertising the same routes over both links, it “preserves both equal-cost paths” so traffic load-balances across the pair.
Adding a spoke resets your BGP sessions
“If a virtual network peering is created between your hub virtual network and spoke virtual network, Azure Route Server performs a BGP soft reset by sending route refresh requests to all its peered NVAs. If the NVAs don't support BGP route refresh, then Azure Route Server performs a BGP hard reset with the peered NVAs, which might cause connectivity disruption for traffic traversing the NVAs.”
So “add a spoke” — routine, low-risk, done by a platform team on a Tuesday — touches every BGP session in the hub. Whether that is invisible or an outage depends on a capability of your appliance that nobody checks during procurement. Verify BGP route refresh support before you standardise on an NVA.
Because routing preference is three settings with one asymmetric default
When multiple paths exist to the same prefix, selection runs in a fixed order: longest prefix match, then the routing preference setting, then BGP path attributes as tiebreakers. Longest prefix always wins — the documented example has a /24 over VPN beating a /16 over ExpressRoute under any preference.
| Setting | Behaviour |
|---|---|
| ExpressRoute preference (default) | ExpressRoute routes take precedence over VPN and NVA routes |
| VPN preference | VPN gateway and NVA routes take precedence over ExpressRoute |
| AS Path preference | Shorter AS path wins, regardless of source |
Two things about this deserve to be designed around rather than discovered. First, “The VPN preference setting doesn't distinguish between VPN gateway routes and NVA routes” — if the same prefix arrives from both, the shortest AS path decides. You cannot express “prefer the SD-WAN over the VPN” with this setting; you express it with AS path length.
Second, and more consequential: failback is not automatic. “When ExpressRoute connectivity is restored after a failure, traffic might continue using VPN or NVA paths instead of switching back to ExpressRoute.” The remedy is to make the backup path explicitly worse — “configure AS path prepending to make VPN and NVA routes less attractive by artificially lengthening their AS paths.” A hybrid design that treats ExpressRoute as primary and VPN as backup, without prepending, will quietly run on the backup after the first failure until somebody notices the bill or the latency.
Because the deployment itself is a maintenance window
This is the practical note that belongs in a change record. “When you create or delete a Route Server in a virtual network that contains a virtual network gateway (ExpressRoute or VPN), expect downtime to last 10 minutes. The actual Route Server deployment might take 30-60 minutes to complete, so we recommend scheduling a maintenance window of 60 minutes for deployment.”
One mercy: if an ExpressRoute circuit is connected to the virtual network, “the downtime doesn't affect the ExpressRoute circuit's connections to other virtual networks.” The blast radius is the one network.
And a piece of history that still bites: route servers created “before November 1, 2021, without an associated public IP address, were deployed with the public preview offering”, which “doesn't include General Availability SLA and support” — and the only remedy is to “delete and recreate your route server”, which means taking the ten-minute outage above. If you inherited a Route Server with no public IP, it has no SLA.
On that public IP, which security reviews always query: it exists because “Azure's underlying platform can't directly access and manage Route Server via its private endpoints due to compliance requirements”, access is “authenticated via certificates”, and the certificate chain “appears not to be signed by a known trusted authority” because Azure signs it with an internal CA — which the documentation states “doesn't represent an SSL vulnerability.” Worth having that paragraph to hand.
Key Architecture Decisions
| Decision | Do this | Because |
|---|---|---|
| Hoping to replace UDRs for inter-subnet steering | Don't | System routes beat BGP; UDRs are still required and still can't fail over via BGP. |
| Replacing the NVA load balancer | Keep it | Route Server removes route maintenance, not the HA mechanism. |
| Appliance route count | Stay under 2,000 | The 4,000 limit counts current routes plus the update; a full readvertisement doubles it. |
| Branch-to-branch towards ExpressRoute | Budget 1,000 routes, not 4,000 | The circuit ceiling is a quarter of the per-peer limit. |
| Reducing routes sent to ExpressRoute | Use the NO_ADVERTISE community | Route Server honours it and won't pass those routes to the ER gateway. |
| NVA peering topology | Every NVA to both instances, same routes | Maintenance drops one peering and you get no advance notice. |
| Choosing an NVA | Require BGP route refresh support | Adding a spoke peering triggers a reset — hard reset without it. |
| ASN selection | Not 65515, not any reserved value, 16-bit only | 65515 is Route Server's own; 32-bit ASNs are unsupported. |
| VPN gateway in the same design | Active-active, ASN 65515 | Required to work with Route Server — and note the AS_PATH consequence. |
| ExpressRoute primary, VPN backup | AS path prepend the backup | Traffic may not fail back to ExpressRoute on recovery. |
| “Prefer SD-WAN over VPN” | Express it with AS path length | VPN preference doesn't distinguish VPN from NVA routes. |
| Capacity beyond 4,000 VMs | Price the routing infrastructure units | Each adds 1,000 VMs at $0.10/hour; the ceiling needs 46 extra. |
| Deploying beside an existing gateway | Book a 60-minute window | 10 minutes of downtime, 30–60 minutes of deployment. |
| Inherited Route Server with no public IP | Delete and recreate | Preview deployments carry no GA SLA or support. |
| Virtual network with IPv6, or a vWAN spoke | Route Server is out | No IPv6 support, and vWAN-connected spokes can't host one. |
| Expecting NVA-to-NVA transit across two Route Servers | Build a tunnel between the NVAs | Route Server forwards no data traffic, and the second one drops the routes. |
Closing Thought
Route Server is the clearest example in this series of a service whose value is entirely in what it stops you from maintaining. It adds no capability to the data path — your appliance was already forwarding, your load balancer was already deciding which appliance was alive. What it removes is the pipeline that rewrote user-defined routes every time the topology changed, and the outage that happened when that pipeline was late.
Which is why the limits read the way they do. A route reflector's constraints are all about table size, session stability and loop prevention, because those are the only things it does. The two worth writing on the wall are that 2,001 readvertised routes exceed a 4,000-route limit, and that its own ASN appearing in a received AS path makes prefixes vanish without an error. Both are standard BGP behaving correctly, and both will be diagnosed as a platform fault the first time they happen.
The one line to take away
Route Server replaces route maintenance, not routing: system routes still beat BGP inside a virtual network, so the UDRs and the load balancer stay. Peer every appliance to both instances, keep its advertised table under 2,000, and keep 65515 out of the AS path.
Next in the series, and the last of Phase 3: connectivity for a multi-region hub-and-spoke — where every mechanism from the last thirty posts has to coexist in one design.
Official Azure Reference
- Azure Route Server frequently asked questions — the control-plane-only scope and zone redundancy, the public IP rationale and its internal certificate chain, the virtualHubs resource type that isn't a Virtual WAN hub, the full limits table and the 4,000-route calculation with its 2001-route worked example, the 1,000-route ExpressRoute ceiling, routing infrastructure units and their per-unit price, the single-Route-Server-per-VNet and RouteServerSubnet rules, BGP-only support with multi-hop eBGP and distinct ASNs, 16-bit ASNs and the full Azure and IANA reserved lists, the 65515 loop-prevention behaviour, the 60-second keepalive and 180-second hold timers, AS path and community preservation, NO_ADVERTISE support, the dual-instance peering requirement and unannounced maintenance, ECMP across equal paths and across ExpressRoute links, the soft-and-hard BGP reset on spoke peering, the UDR and NSG restrictions on the subnet, the system-route precedence that blocks inter-subnet steering, the NVA-to-NVA and MSEE hairpin limitations, the S2S-only branch-to-branch transit, the Virtual WAN spoke exclusion, the IPv6 answer, the VPN gateway active-active and ASN requirement, the 10-minute downtime and 60-minute window, and the AS 12076 rewrite towards on-premises
- Routing preference with Azure Route Server — the three-step selection hierarchy of longest prefix match, routing preference and BGP attributes, the three preference settings with ExpressRoute preference as the default, the statement that VPN preference doesn't distinguish VPN from NVA routes and falls back to AS path, the failback warning when ExpressRoute recovers and the AS path prepending remedy, and the worked example where a longer prefix over VPN beats a shorter prefix over ExpressRoute
- What is Azure Route Server — the managed BGP route exchange with the Azure SDN and the elimination of manual route table maintenance, the route reflector description and the route exchange sequence, the deployment-based hourly pricing with no per-route or per-session charge, the pre-November-2021 public preview deployments without a public IP and their absent GA SLA, and the service limits table
- About route maps for Azure Route Server — the filtering, aggregation and BGP attribute control referenced throughout (no claims drawn from it)
- Azure Route Server support for ExpressRoute and VPN — the branch-to-branch integration detail behind the transit rules (no claims drawn from it)
Comments