Lesson 3 of 6 Network Solutions

Designing Hybrid Connectivity

This lesson compares VPN Gateway and ExpressRoute, and explains how to make each resilient.

Learning outcomes

After completing this lesson, you will be able to:

  • Compare VPN Gateway with ExpressRoute.
  • Describe ExpressRoute SKUs and encryption options.
  • Identify resilient connectivity designs.

Azure VPN Gateway

VPN Gateway sends encrypted traffic between Azure and other networks, over the public internet. Site-to-site connects a whole network through an on-premises VPN device, and point-to-site connects individual client devices, using OpenVPN, IKEv2 or SSTP. It is quick to deploy and inexpensive, and it needs only an internet connection. Because it uses the internet, performance is not guaranteed.

Gateway SKUs determine throughput, tunnels and features. Zone-redundant VpnGw1AZ to VpnGw5AZ SKUs are the correct choice for production. New non-zone-redundant VpnGw1 to VpnGw5 gateways cannot be created since 1 November 2025, and existing ones were scheduled for migration. Basic is limited to 100 Mbps and 10 tunnels, without BGP, and it is suitable only for dev/test. Route-based gateways are the normal design, since policy-based gateways support only limited site-to-site scenarios.

For resilience, an active-active gateway uses two instances with separate public IP addresses, and both carry traffic. Combined with BGP and two on-premises devices, this removes single points of failure in the path.

True or false

VPN Gateway choices

Exam skills 4.4.2

Check VPN Gateway SKU and resilience facts.

Log in to try this activity Interactive activities are free with an account.

Azure ExpressRoute

ExpressRoute provides a private connection from on-premises to Microsoft, through a connectivity provider. Traffic does not cross the public internet, so latency is predictable, and bandwidth ranges from 50 Mbps to 10 Gbps on standard circuits. ExpressRoute Direct gives dedicated ports of 10, 100 or 400 Gbps, connecting straight to the Microsoft network.

Circuit SKUs set reach and route limits. Local connects to Azure regions near a peering location, with data transfer included in the port charge. Standard reaches all regions within a geopolitical area. The Premium add-on gives global connectivity, and raises the route limit from 4,000 to 10,000. Private peering connects to VNets, and Microsoft peering connects to Microsoft public services, such as Microsoft 365.

ExpressRoute traffic is private, but it is not encrypted by default. If encryption is required, MACsec protects traffic on ExpressRoute Direct at the physical layer, and a site-to-site VPN tunnel over private peering offers end-to-end IPsec encryption.

ExpressRoute resilience and extensions

An ExpressRoute circuit has two connections for redundancy, but both may terminate at the same peering location, so a failure of that location can stop the circuit. Higher resilience needs two circuits in different peering locations, and ExpressRoute Metro offers a single circuit with links in two locations in the same city. A site-to-site VPN as a backup offers a cost-effective alternative, with traffic moving to the VPN if the circuit fails.

Global Reach links two ExpressRoute circuits, so that on-premises sites can exchange traffic through the Microsoft backbone. Using it across geopolitical areas requires a Premium circuit. FastPath sends traffic directly to virtual machines, bypassing the gateway in the data path, and improves performance. It requires an UltraPerformance, ErGw3Az or sufficiently large ErGwScale gateway. ExpressRoute virtual network gateways come in zone-redundant SKUs, such as ErGw1Az.

Match the pairs

ExpressRoute options

Exam skills 4.4.2

Match each ExpressRoute option with what it provides.

Log in to try this activity Interactive activities are free with an account.

Comparing the options

The following comparison recaps VPN Gateway and ExpressRoute.

VPN Gateway
PathPublic internet, encrypted
LatencyVariable
BandwidthLimited by gateway SKU
EncryptionBuilt in
Time to deployHours
CostLow
Choose when Small sites, backups, quick starts
ExpressRoute
PathPrivate connection
LatencyPredictable
BandwidthUp to 10 Gbps; Direct up to 400 Gbps
EncryptionAdd MACsec or IPsec
Time to deployWeeks, through a provider
CostHigher
Choose when Mission-critical, high-throughput hybrid traffic

The following diagram shows the primary and backup connectivity paths of a bank's hybrid network.

Hybrid connectivity for the bank. ExpressRoute provides predictable 5 Gbps, with an IPsec VPN tunnel over private peering adding encryption that ExpressRoute lacks by default. A site-to-site VPN through a zone-redundant VPN gateway over the internet is the low-cost backup path; a second circuit would cost more.
The scenario is illustrative.

Routing between networks

Azure Route Server simplifies dynamic routing with network virtual appliances. It peers with an appliance over BGP and programs learned routes into the virtual network, so that routes do not need to be maintained by hand. It supports up to 16 BGP peers. It suits a hub with third-party appliances, while Virtual WAN provides similar features within its own hubs.

Forced tunnelling

By default, internet-bound traffic from Azure leaves directly from Azure. Forced tunnelling sends it to the on-premises network instead, so that an existing on-premises firewall or proxy can inspect and log it. With VPN Gateway, the on-premises side can advertise a default route (0.0.0.0/0) over BGP, or a route-based gateway can be given a default site. With ExpressRoute, the on-premises routers advertise the default route over BGP. User-defined routes can exempt particular subnets, so that they reach the internet directly.

Forced tunnelling has costs. Every internet request crosses the hybrid connection twice, which adds latency and consumes bandwidth, and inbound internet traffic to Azure resources becomes asymmetric. Azure Firewall can forward its outbound traffic to an on-premises appliance only when it is deployed with the management network interface enabled, and inbound DNAT is then not supported in forced tunnelling mode. Many designs now inspect internet traffic in an Azure hub with Azure Firewall instead, which keeps the requirement for central inspection without sending traffic back on-premises. Forced tunnelling remains the answer when policy requires all internet traffic to pass through the on-premises security stack.

Scenario questions

Forced tunnelling

Exam skills 4.4.2

Apply forced tunnelling and its alternatives.

Log in to try this activity Interactive activities are free with an account.
Worked example

Designing hybrid connectivity

A bank needs 5 Gbps of predictable connectivity between its datacenter and Azure, for a core application. Traffic must be encrypted, and connectivity must continue if the primary connection fails, at the lowest extra cost. The network team's connectivity provider can deliver within six weeks. What should you recommend?

Predictable bandwidth at 5 Gbps calls for ExpressRoute, as VPN performance over the internet is not guaranteed. ExpressRoute is not encrypted by default, so an IPsec VPN tunnel over private peering adds encryption, or MACsec can be used if the bank adopts ExpressRoute Direct.

A site-to-site VPN over the internet provides a low-cost backup path, using a zone-redundant VPN gateway. A second ExpressRoute circuit would be more resilient, and would give equal bandwidth during failure, but the scenario asks for the lowest extra cost, so the VPN backup is the better answer here.

Check yourself

Is ExpressRoute traffic encrypted by default?

Show answer

No. It is private but not encrypted, so MACsec or IPsec is added where encryption is required.

Exam Tips

Remember for the exam

  • VPN uses the internet; ExpressRoute is private, with predictable latency.
  • Use AZ SKUs for VPN gateways; non-AZ VpnGw1-5 cannot be created.
  • ExpressRoute is not encrypted by default: use MACsec or IPsec.
  • Premium gives global connectivity and more routes; Local includes data transfer.
  • Global Reach links on-premises sites through ExpressRoute circuits.