Homeβ€Ί Blogβ€Ί Azure Architecture Series #109 β€” Azure Route Server…
Azure Architecture Azure Architecture Series

Azure Architecture Series #109 β€” Azure Route Server

Verified against current vendor documentation on 30 November 2026. Pricing, limits and API behaviour were checked against the official docs on that date. Cloud services change fast — if you are reading this much later, treat the specifics as a starting point and re-check the linked sources.

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

Diagram: Azure Route Server across four bands. The first band separates what moves through it from what does not. On the control plane it maintains BGP sessions with the operator's network virtual appliances, programs learned routes into the software-defined network, and advertises virtual network prefixes back to the appliances. On the data plane it carries nothing: the documentation states that data traffic goes directly from the appliance to the destination virtual machine and directly from the machine back to the appliance, and no customer data is stored. The band notes that it is a BGP route reflector inside the virtual network, limited to one per virtual network and deployed in a dedicated RouteServerSubnet, and that although it is a virtual hubs resource with the Route Server SKU it is not a Virtual WAN hub. The second band covers the limits. Sixteen BGP peers per deployment. Four thousand routes per peer, with the session dropped if that is exceeded. Fifty thousand virtual machines, five hundred virtual networks and ten thousand prefixes. The capacity model starts at two routing infrastructure units covering four thousand machines and adds a thousand machines per additional unit at ten cents an hour. The band's warning is that the four thousand figure counts current routes plus the incoming update, so readvertising two thousand and one routes is counted as four thousand and two and tears the session down, and that towards ExpressRoute with branch-to-branch enabled the ceiling is only one thousand, a quarter as much. The third band lists the BGP details that decide whether the thing works. The autonomous system number is sixty-five thousand five hundred and fifteen by default, sixteen bit only, and the appliance must use a different one. Loop prevention means that number appearing anywhere in a received AS path causes the route to be silently rejected. Keepalive is sixty seconds and hold is one hundred and eighty. Every appliance must be peered with both Route Server instances advertising identical routes. Equal AS path lengths from two appliances produce equal-cost multi-path across both next hops. Selection order is longest prefix, then routing preference, then BGP attributes. And creating a spoke peering triggers a BGP soft reset, which becomes a hard reset and a traffic hit if the appliance does not support route refresh. The fourth band lists what it cannot do. Inter-subnet steering is impossible because system routes beat BGP, so user-defined routes are still required and still cannot be failed over with BGP. Neither a user-defined route nor a network security group can be attached to the RouteServerSubnet. There is no IPv6, and deploying into a network that already has IPv6 space breaks IPv6 connectivity. A spoke attached to a Virtual WAN hub cannot host a Route Server. Branch-to-branch transit covers ExpressRoute and site-to-site VPN only, not point-to-site. And two Route Servers do not join two appliances to each other, so a tunnel between them is required. The diagram closes by noting that deploying or deleting one beside an existing gateway means ten minutes of downtime, thirty to sixty minutes of deployment and a recommended sixty-minute window, and that there is no advance notice of maintenance, which is why both instances must be peered rather than only the one working today.
A route reflector, not a router — it changes what your VMs believe, never where their packets go.

The limits, and the one that is not what it seems

ResourceLimit per deployment
BGP peers16
Routes each BGP peer can advertise4,000 — exceed it and “the BGP session gets dropped”
VMs in the virtual network, including peered50,000
Virtual networks supported500
Total on-premises and Azure VNet prefixes10,000
Routes towards ExpressRoute with branch-to-branch1,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.

SettingBehaviour
ExpressRoute preference (default)ExpressRoute routes take precedence over VPN and NVA routes
VPN preferenceVPN gateway and NVA routes take precedence over ExpressRoute
AS Path preferenceShorter 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

DecisionDo thisBecause
Hoping to replace UDRs for inter-subnet steeringDon'tSystem routes beat BGP; UDRs are still required and still can't fail over via BGP.
Replacing the NVA load balancerKeep itRoute Server removes route maintenance, not the HA mechanism.
Appliance route countStay under 2,000The 4,000 limit counts current routes plus the update; a full readvertisement doubles it.
Branch-to-branch towards ExpressRouteBudget 1,000 routes, not 4,000The circuit ceiling is a quarter of the per-peer limit.
Reducing routes sent to ExpressRouteUse the NO_ADVERTISE communityRoute Server honours it and won't pass those routes to the ER gateway.
NVA peering topologyEvery NVA to both instances, same routesMaintenance drops one peering and you get no advance notice.
Choosing an NVARequire BGP route refresh supportAdding a spoke peering triggers a reset — hard reset without it.
ASN selectionNot 65515, not any reserved value, 16-bit only65515 is Route Server's own; 32-bit ASNs are unsupported.
VPN gateway in the same designActive-active, ASN 65515Required to work with Route Server — and note the AS_PATH consequence.
ExpressRoute primary, VPN backupAS path prepend the backupTraffic may not fail back to ExpressRoute on recovery.
“Prefer SD-WAN over VPN”Express it with AS path lengthVPN preference doesn't distinguish VPN from NVA routes.
Capacity beyond 4,000 VMsPrice the routing infrastructure unitsEach adds 1,000 VMs at $0.10/hour; the ceiling needs 46 extra.
Deploying beside an existing gatewayBook a 60-minute window10 minutes of downtime, 30–60 minutes of deployment.
Inherited Route Server with no public IPDelete and recreatePreview deployments carry no GA SLA or support.
Virtual network with IPv6, or a vWAN spokeRoute Server is outNo IPv6 support, and vWAN-connected spokes can't host one.
Expecting NVA-to-NVA transit across two Route ServersBuild a tunnel between the NVAsRoute 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

Comments

How was your experience?
Your feedback helps improve this site.
PoorExcellent