VPN Gateway and ExpressRoute: Two Roads Between Your Office and the Azure Cloud

VPN Gateway and ExpressRoute: Two Roads Between Your Office and the Azure Cloud

A beginner-friendly guide to connecting your own network to Azure. Learn how VPN Gateway builds encrypted tunnels over the internet, how ExpressRoute provides a private dedicated line, and how to choose between them or use both.

Imagine your company has its main office in one city and has just rented a large warehouse in another. Staff in the office need to check stock in the warehouse many times a day, and the two sites must share files, phone calls and computer systems as if they were in the same building. You have two choices. You could send your staff by public road in an armored van with a locked box, which is cheap and starts quickly but shares the road with everyone else. Or you could build your own private road between the two sites, which costs more and takes time, but gives you a steady, predictable journey with no traffic jams from strangers. In Azure, the armored van is called VPN Gateway, and the private road is called ExpressRoute.

In this guide, we will learn both services from the very beginning. You do not need any earlier knowledge of networking. Every new word will be explained the first time it appears, with a simple comparison from daily life. By the end you will know what each service does, how the parts fit together, what the differences are, and how to choose the right one for a real project.

1The Problem: Joining Your Network to the Cloud

Most companies do not move everything to the cloud at once, so they need a safe bridge between the two worlds.

Let us start with some basic words. Azure is Microsoft’s cloud platform, a huge collection of computers in data centers that you rent when you need them. A network is a group of computers connected so they can talk to each other. On-premises means the computers and equipment that sit in your own buildings, such as your office server room, as opposed to the cloud. A virtual network, shortened to VNet, is your own private network inside Azure, isolated from other customers.

Many organizations keep some systems in their own buildings and move others into Azure. This mixture is called a hybrid cloud. For a hybrid cloud to work, the on-premises network and the Azure VNet must be able to exchange data privately and reliably. A payroll program in the office may need to read a database in Azure. An application in Azure may need to look up customers stored in an old office system. Without a connection, these two sides are strangers who cannot talk.

Azure gives you two main ways to build this connection. VPN Gateway sends encrypted traffic across the public internet. ExpressRoute uses a private line from a telecom provider that never touches the public internet. Both end up at your Azure VNet, but the journey is very different.

Simple Analogy

A VPN is like sending a locked suitcase by a public motorway: it is protected, but the road is shared and the journey time can vary. ExpressRoute is like owning a private railway line between two stations: nobody else uses it, the journey time is steady, and you pay for that privilege.

flowchart LR
    OP["On-premises network"] -- "Encrypted tunnel over the public internet" --> VG["VPN Gateway"]
    OP -- "Private dedicated line via a provider" --> ER["ExpressRoute"]
    VG --> VN["Azure virtual network"]
    ER --> VN
        
FIG 1 — Two ways to connect an on-premises network to Azure

2Understanding VPNs and Encryption

A VPN creates a protected tunnel through a public network so that outsiders cannot read your data.

VPN stands for Virtual Private Network. The word “virtual” means the private network is created by software, not by laying a new physical cable. The word “private” means that only the two ends can understand the data. The public internet carries your messages, but the messages are scrambled so that anyone who intercepts them sees only nonsense.

The scrambling is called encryption. Data is converted into unreadable code using a secret key, and only someone holding the matching key can turn it back into readable form. The protected path that encrypted data travels through is called a tunnel. To build a tunnel, both ends agree on a set of rules for how to prove identity and how to encrypt. The most common rule set used between sites is called IPsec, together with a negotiation method called IKE, short for Internet Key Exchange. Azure VPN Gateway uses these standards.

1

Introduction

The two ends contact each other and prove their identity, usually by using a shared secret key or certificates.

2

Agreement

They agree on which encryption methods and settings both can support.

3

Tunnel creation

A secure tunnel is established between the two ends.

4

Protected traffic

Every packet that crosses the tunnel is encrypted at one end and decrypted at the other.

Simple Analogy

Imagine two friends who meet first to agree on a secret code and exchange a password. After that, they write all their letters in the code. A postman can carry those letters across the city, but even if he opens one, he sees only gibberish.

i
Why Encryption Matters on the Internet

The public internet passes through many networks owned by many companies. You cannot control who sits in the middle, so encryption is the only way to keep business data private while it travels.

3What Is Azure VPN Gateway?

VPN Gateway is the Azure service that ends the encrypted tunnel on the cloud side.

A gateway is a device or service that sits at the edge of a network and controls traffic going in and out. Azure VPN Gateway is a special kind of virtual network gateway that you place inside your VNet. Its job is to send encrypted traffic between your Azure VNet and an outside location over the public internet. The outside location may be your office, an individual traveling employee, or another Azure VNet.

Behind the scenes, Azure runs two or more virtual machines for each gateway, which are managed entirely by Microsoft. You never log into them. You only choose the size, the settings and the connections. By default, the two machines work as a pair in an active and standby arrangement, so if one fails the other takes over. This is the first layer of protection against failure.

Part 1

GatewaySubnet

A special, dedicated slice of your VNet that holds only the gateway machines. It must carry this exact name.

Part 2

Virtual network gateway

The VPN Gateway resource itself, with its size, public address and routing settings.

Part 3

Local network gateway

An Azure resource that represents your on-premises VPN device and the address ranges behind it.

Part 4

Connection

The resource that links the two gateways and holds the shared secret key and settings for the tunnel.

flowchart LR
    D["On-premises VPN device"] -- "IPsec tunnel over the internet" --> G["Azure VPN Gateway in GatewaySubnet"]
    LNG["Local network gateway: describes the on-premises side"] -. "linked by" .-> C["Connection with shared key"]
    G -. "linked by" .-> C
    G --> V["VMs and services in the VNet"]
        
FIG 2 — The parts of a site-to-site VPN connection
Simple Analogy

The VPN Gateway is the security door at the Azure end of the tunnel. The local network gateway is the entry in the guard’s notebook that says, “the office door is at this address and these rooms are behind it.” The connection is the agreement between the two guards, including the password they use to recognize each other.

4The Three Types of VPN Connections

VPN Gateway supports connecting whole sites, single users, and other virtual networks.

Site-to-Site (S2S)

Connects a whole office or data center to Azure. A VPN device in your office builds an IPsec tunnel to the Azure VPN Gateway. All computers behind the device can reach Azure without each needing special software. The tunnel is usually always on.

Point-to-Site (P2S)

Connects a single computer to Azure. An employee working from home or traveling runs a VPN client on their laptop, signs in, and gets access to the VNet. Supported protocols include OpenVPN, SSTP and IKEv2, and sign-in can use certificates, Microsoft Entra ID or a RADIUS server.

VNet-to-VNet

Connects two Azure virtual networks to each other using the same technology, which is useful across regions or subscriptions. For many designs, simple VNet peering is cheaper and faster, but a VNet-to-VNet VPN adds encryption between the networks and can be useful in special cases.

TypeConnectsTypical UserSetup Effort
Site-to-SiteAn entire network to AzureOffices and data centersNeeds a compatible VPN device
Point-to-SiteOne device to AzureRemote and traveling staffNeeds client software and sign-in
VNet-to-VNetOne VNet to anotherCloud architectsTwo gateways to configure
Simple Analogy

Site-to-Site is a permanent bridge between two towns. Point-to-Site is a personal ferry ticket for one traveler. VNet-to-VNet is a bridge between two islands that both belong to you.

5Gateway SKUs, Speed and Resilience

The size of the gateway you choose decides its speed, the number of tunnels and how resilient it is.

A SKU is simply a product size with its own features and price. VPN gateways come in a range of SKUs, with names such as VpnGw1, VpnGw2 and so on up to VpnGw5. Bigger numbers give higher throughput and more tunnels. Throughput is the amount of data that can move through each second. Rough figures range from several hundred megabits per second for the smaller sizes to around ten gigabits per second for the largest. An older Basic SKU also exists, but it is considered a legacy option with many limits, so it is not suitable for new production designs.

Each size also exists in a zone-redundant form, often marked with the letters AZ in the name. An availability zone is a physically separate data center building inside an Azure region, with its own power and cooling. A zone-redundant gateway places its machines in different zones, so it keeps working even if an entire building is lost.

Setting

Active-standby

The default. One gateway machine carries the traffic and the other waits. If the active one fails, the standby takes over after a short interruption.

Setting

Active-active

Both machines carry traffic, each with its own public address and tunnel. If one fails, the other keeps going with less interruption.

Setting

Zone-redundant

The gateway machines are spread across availability zones to survive the loss of a zone.

!
Common Misconception

Thinking that a gateway’s rated speed is what you will always see. The internet path between your office and Azure, your VPN device, and the encryption work all limit real speed. Test the real throughput instead of trusting the number alone.

i
Check Current Figures

SKU names, speeds and limits change over time. Use the numbers here to learn the ideas, and confirm exact values in the official Azure documentation before sizing a real gateway.

6Routing: Route-Based, Policy-Based and BGP

Routing decides which traffic goes into the tunnel and how the two sides learn each other’s addresses.

A route is a rule that says, “traffic going to this address range should be sent this way.” A VPN has to know which address ranges live on each side so that the right traffic enters the tunnel. There are two styles of VPN for this.

Route-based VPN

  • Uses routing tables to decide what enters the tunnel
  • Supports many tunnels at once, including point-to-site
  • Works with dynamic routing through BGP
  • Recommended for almost all new designs

Policy-based VPN

  • Uses fixed address lists to decide what enters the tunnel
  • Limited features and fewer tunnels
  • Mostly needed for older devices that cannot do route-based
  • Does not suit growing or changing networks

What is BGP?

BGP, the Border Gateway Protocol, is the language that networks use to tell each other which address ranges they can reach. Instead of typing every range by hand, the two sides announce them automatically. If a new subnet is added on either side, the other side learns about it at once. BGP also makes it possible to have several tunnels and to switch traffic automatically if one fails.

Simple Analogy

Static routes are like a printed map that you must reprint whenever a new street opens. BGP is like a live satnav that hears about new roads and closures as they happen and updates your route immediately.

i
Avoid Overlapping Addresses

The address ranges used on-premises and in Azure must not overlap. If your office and your VNet both use the same range, the network cannot tell which side a destination belongs to. Plan address ranges carefully before you build anything.

7Building a Site-to-Site VPN Step by Step

The steps are the same in concept for every site-to-site VPN, and following them in order avoids confusion.

1

Plan the address ranges

Decide the address ranges for the VNet and confirm they do not clash with on-premises ranges.

2

Create the GatewaySubnet

Add the special subnet to the VNet, with enough room for the gateway and for future growth.

3

Create the VPN gateway

Choose route-based type, pick a suitable SKU, and assign a public IP address. Creating a gateway can take a good while, so allow time.

4

Describe the on-premises side

Create a local network gateway with the public address of your VPN device and the address ranges behind it.

5

Create the connection

Link the two gateways and set a strong shared key, which must be identical on both sides.

6

Configure the on-premises device and test

Set the matching settings on your own device, then check that the tunnel shows as connected and that traffic flows both ways.

!
Common Mistake

Using different encryption settings or a mistyped shared key on the two sides. The tunnel will refuse to connect, and the error messages can be vague. Double-check that both sides match exactly.

i
Check Device Compatibility

Microsoft publishes a list of VPN devices that are known to work with Azure. Using a listed device with a sample configuration saves a lot of trial and error.

8Point-to-Site: Letting Individual People Connect

Point-to-Site gives remote workers secure access to Azure resources without a physical office.

Not every user sits inside an office with a VPN device. People work from home, from cafes and from airports. For them, Azure offers a point-to-site VPN. The user installs a VPN client, chooses a profile that points to the Azure gateway, signs in, and gets a private connection into the VNet.

Sign-in

Microsoft Entra ID

Users sign in with their normal work account, which allows multi-factor sign-in and central control.

Sign-in

Certificates

Each device holds a certificate that proves it is allowed. Good for managed laptops but needs certificate handling.

Sign-in

RADIUS

Uses an existing authentication server in your organization, which suits companies that already run one.

Choosing a protocol

OpenVPN works on many kinds of devices and passes through most firewalls. SSTP works on Windows and runs over the same port as ordinary secure web traffic, so it passes through most restrictive networks. IKEv2 is quick and well suited to mobile devices that change networks often. The right choice depends on the devices your staff use.

Simple Analogy

Site-to-Site is like a company shuttle bus that runs between two buildings for everyone. Point-to-Site is like giving each traveling employee their own taxi voucher that works from wherever they happen to be.

i
Prefer Identity-Based Sign-in

Where possible, use Microsoft Entra ID with multi-factor authentication. It is easier to manage than certificates for large numbers of users and makes it simple to remove access when someone leaves.

9What Is Azure ExpressRoute?

ExpressRoute is a private connection from your network to Microsoft that does not use the public internet.

ExpressRoute lets you extend your on-premises network into the Microsoft cloud over a private connection provided by a connectivity provider, which is a telecom company. Because the traffic never travels over the public internet, ExpressRoute generally offers more reliability, faster and more consistent speeds, and lower delay than ordinary internet-based connections.

The word latency means the time a message takes to travel from one point to another. For applications that talk to each other thousands of times a second, such as a database in Azure queried by a program in the office, steady low latency matters a great deal. A private line gives more predictable latency than the shared internet.

Private
traffic does not cross the public internet
Predictable
steadier speed and delay than internet paths
Up to 100 Gbps
on ExpressRoute Direct ports
Simple Analogy

If a VPN is a public motorway with a locked van, ExpressRoute is a dedicated railway track leased between your factory and the port. Trains run on schedule because no one else uses your track.

!
Important Misconception

Private does not automatically mean encrypted. ExpressRoute keeps traffic off the public internet, but it does not scramble the data by default. If your rules require encryption, you must add it, and we will see how later.

10Circuits, Providers and Connectivity Models

An ExpressRoute circuit is the logical connection that you order, and a provider builds the physical path.

The unit you buy is an ExpressRoute circuit. A circuit is a logical link between your network and Microsoft, ordered in the Azure portal and delivered through a connectivity provider at a peering location, which is a facility where the provider and Microsoft networks meet. When you create a circuit, Azure gives you a service key, a unique code that you pass to your provider so they can attach your line to your circuit.

Each circuit includes two connections, a primary and a secondary, going to two separate Microsoft edge routers at the peering location. This built-in pair gives you redundancy against a single device or cable failure. To benefit from it, your own network must be set up to use both.

flowchart LR
    CE["Your edge routers"] --> PR["Connectivity provider network"]
    PR --> M1["Microsoft edge router: primary"]
    PR --> M2["Microsoft edge router: secondary"]
    M1 --> GW["ExpressRoute gateway in your VNet"]
    M2 --> GW
    GW --> VN["Azure virtual network"]
        
FIG 3 — An ExpressRoute circuit with primary and secondary connections

Four connectivity models

Model 1

Cloud exchange co-location

Your equipment sits in the same facility as a cloud exchange, which provides links to Microsoft.

Model 2

Point-to-point Ethernet

A provider gives you a dedicated link between your site and Microsoft.

Model 3

Any-to-any network

Your company’s wide area network, often run by a provider, is extended to include Azure as another site.

Model 4

ExpressRoute Direct

You connect straight to Microsoft’s network on high-speed ports, such as ten or one hundred gigabits per second.

i
Lead Time

Unlike a VPN, which can be built in an afternoon, ExpressRoute needs a provider to build a physical connection. This can take weeks, so plan early.

11Peering Types: What Can You Reach?

Peering decides which Microsoft services your private connection can reach.

In ExpressRoute, peering is a routing relationship between your network and Microsoft’s network over the circuit. A circuit can carry different kinds of peering for different destinations.

Azure private peering

Connects your on-premises network to your own Azure virtual networks, using their private addresses. This is the most common use. Your office servers can talk to Azure VMs as if they were on the same internal network.

Microsoft peering

Connects your network to Microsoft’s public-facing services, such as Microsoft 365 and Azure services reached by public addresses. This needs careful planning of public address ranges and approvals, and it is not used by every customer.

i
Old Public Peering

Earlier documents mention a third type called Azure public peering. It has been retired, and new designs should use private peering or Microsoft peering instead. Always verify current options in the official documentation.

Simple Analogy

Private peering is a private corridor into your own rooms in a big building. Microsoft peering is a private entrance into the building’s public lobby and shared services. Both avoid the street, but they open into different parts of the building.

12Circuit SKUs, Bandwidth and Billing Models

You choose how fast the circuit is, how far it reaches and how data usage is billed.

Bandwidth is the maximum amount of data a circuit can carry each second. Circuits ordered through providers are available in a range of speeds, from small ones such as fifty megabits per second up to ten gigabits per second, while ExpressRoute Direct offers high-speed ports. You can usually raise the bandwidth later without rebuilding the circuit.

SKU

Local

Reaches one or two Azure regions near the peering location, at a lower cost, with no extra charge for outbound data in the common plan.

SKU

Standard

Reaches all Azure regions within the same geopolitical area, such as a continent or country group.

SKU

Premium

Adds global reach to regions around the world, plus higher limits for routes and connected virtual networks.

Metered and unlimited data plans

With a metered plan, you pay a monthly fee for the circuit plus a charge for the data that leaves Azure. With an unlimited plan, the monthly fee is higher but outbound data is included. If you move large amounts of data out of Azure every month, the unlimited plan is often cheaper. Data coming into Azure is generally not charged in either plan.

!
Common Mistake

Forgetting that the provider’s charges are separate from Azure’s charges. The connectivity provider bills for the physical line, and Azure bills for the circuit and the gateway. Add both when estimating cost.

13ExpressRoute Gateway, FastPath and Global Reach

Extra components and options connect the circuit to your VNets and improve performance.

A circuit by itself reaches Microsoft’s edge. To connect it to a particular virtual network, you place an ExpressRoute gateway in that VNet, again inside a GatewaySubnet. You then create a connection that links the gateway to the circuit. The gateway has its own size options, which decide how much traffic it can pass and how many connections it handles. One circuit can connect to several VNets, within the limits of its SKU.

Option

FastPath

Sends traffic straight to the virtual machines, skipping the gateway on the data path. This reduces delay and lifts the gateway’s throughput limit for supported cases.

Option

Global Reach

Lets two of your on-premises sites, each connected to ExpressRoute, talk to each other over Microsoft’s private backbone instead of your own long-distance link.

Option

Zone-redundant gateway

Spreads the ExpressRoute gateway across availability zones so that a zone failure does not cut the connection.

Example: Global Reach for two offices

A company has offices in Mumbai and Singapore, each connected to Azure by its own ExpressRoute circuit. With Global Reach, the two offices can exchange data directly across Microsoft’s private network, avoiding a separate expensive leased line between them.

i
Gateway Size Matters

The ExpressRoute gateway can become the bottleneck if it is too small for the circuit. Match the gateway size to the traffic you expect and review it when you raise circuit bandwidth.

A private line is not the same as an encrypted line, so you may need to add protection.

Since ExpressRoute traffic avoids the public internet, many companies feel it is safe enough. Others, especially those with strict rules for finance, healthcare or government data, require encryption as well. Azure supports several ways to add it.

1

Application-level encryption

Use secure protocols such as TLS inside your applications, so the data is protected no matter which path it takes.

2

MACsec on ExpressRoute Direct

Encrypts the link between your routers and Microsoft’s routers at the data-link level on direct ports, giving line-rate protection.

3

IPsec VPN over ExpressRoute

Run a site-to-site VPN tunnel through the private circuit, so you get both a private path and an encrypted tunnel, at the cost of extra complexity and some speed.

Simple Analogy

Using ExpressRoute alone is like sending valuables on your private railway. Adding encryption is like also locking the valuables in a safe inside the train. Even if someone broke into the train, they could not open the safe.

15VPN Gateway Versus ExpressRoute

Both reach Azure, but they differ in path, speed, cost, setup time and promise of reliability.

QuestionVPN GatewayExpressRoute
Path of trafficOver the public internetOver a private connection
Encrypted by defaultYes, with IPsecNo, optional add-ons
Speed and consistencyGood but varies with the internetHigher and more consistent
LatencyVariableLower and more predictable
Setup timeHours to daysOften weeks, because a provider is involved
Cost levelLowerHigher
Good for individual usersYes, with point-to-siteNo, it connects networks
Typical useSmall and medium workloads, remote workers, backup pathLarge data transfers, critical workloads, strict performance needs
flowchart TD
    S["Need to connect to Azure"] --> Q1{"Individual remote users?"}
    Q1 -- Yes --> P["VPN Gateway: Point-to-Site"]
    Q1 -- No --> Q2{"Need steady high speed and low delay?"}
    Q2 -- Yes --> Q3{"Can you wait for a provider to build it?"}
    Q3 -- Yes --> E["ExpressRoute"]
    Q3 -- No --> V1["Start with a Site-to-Site VPN"]
    Q2 -- No --> V2["VPN Gateway: Site-to-Site"]
    E --> B["Consider a VPN as backup"]
        
FIG 4 — A simple path for choosing between VPN Gateway and ExpressRoute
i
Start Small, Grow Later

Many teams begin with a site-to-site VPN because it is fast and cheap to set up, then add ExpressRoute when traffic and importance grow. The VPN then often stays as a backup path.

16Using Both Together for Resilience

A VPN can quietly stand by as a backup for an ExpressRoute circuit.

Even a private line can be cut by a digger or a provider’s fault. Critical systems therefore plan a second path. One popular design uses ExpressRoute as the main route and a site-to-site VPN as a backup. The two connections can exist side by side on the same VNet. Routing is arranged so that traffic prefers ExpressRoute while it is healthy, and moves automatically to the VPN tunnel if ExpressRoute fails. This is called failover.

Other resilience steps include ordering two circuits from different providers at different peering locations, using zone-redundant gateways, and testing failover before you need it. The more critical the system, the more independent paths it deserves.

Advantages of the Combined Design

  • Continued connectivity if the private line fails
  • Cost lower than buying a second circuit
  • Quick to set up, since a VPN is easy to add
  • Encryption available on the backup path

Trade-offs to Plan For

  • The backup VPN has lower and less steady speed
  • Routing preferences must be set carefully
  • The backup must be tested regularly to be trusted
!
Common Mistake

Building a backup path and never testing it. When the main link fails during a real incident, a never-tested backup often fails too. Rehearse failover on a schedule.

17Hub-and-Spoke Designs and Gateway Transit

Larger organizations place one gateway in a central hub network and share it with many others.

When a company has many virtual networks, building a separate gateway in each would be wasteful and hard to manage. A common pattern is the hub-and-spoke design. One central VNet, called the hub, holds shared services including the VPN or ExpressRoute gateway. Other VNets, called spokes, are connected to the hub by VNet peering. With a feature called gateway transit, spokes can use the hub’s gateway to reach on-premises networks without having gateways of their own.

Simple Analogy

Think of an airport hub. Many small towns connect to the big airport, and passengers use the hub’s international terminal to travel abroad. No small town needs to build its own international airport.

Example: a company with five departments

A company gives each department its own VNet for isolation. Rather than five gateways, it builds one hub with an ExpressRoute gateway and a backup VPN gateway. All five departments reach the head office through the hub, which saves money and gives the network team one place to manage and watch.

i
Managed Option

Azure Virtual WAN offers a managed hub design with built-in VPN and ExpressRoute gateways, which can reduce the effort of building and maintaining hubs yourself in large, multi-site networks.

18Security Best Practices

A connection to the cloud is also a door into your network, so it must be guarded.

Joining the two networks means a problem on one side can spread to the other. A few habits reduce this risk.

1

Use strong keys and modern settings

Choose long random shared keys and current encryption settings, and rotate keys from time to time.

2

Filter traffic with security rules

Use network security groups and, where needed, a firewall in the hub to allow only the traffic that is really required between the two sides.

3

Apply least privilege

Give users and systems access only to the resources they need, rather than the entire network.

4

Protect remote users with strong sign-in

Use multi-factor authentication for point-to-site connections, and review who has access regularly.

5

Log and watch

Collect gateway logs and connection events in Azure Monitor and look for unusual patterns.

!
Common Mistake

Treating the connected on-premises network as fully trusted and opening everything to it. If one old office computer is compromised, the attacker may then reach everything in Azure. Filter traffic between the sides.

19Monitoring and Troubleshooting

A few key numbers and tools show whether your connections are healthy.

Hybrid connections fail in many small ways: a wrong key, a changed address on the office router, an expired certificate or a provider fault. Azure offers tools to see what is happening.

VPN

Tunnel status

Shows whether each tunnel is connected, and how much data moves in and out of it.

VPN

Gateway diagnostics

Network Watcher can collect logs and diagnose why a tunnel will not connect.

ExpressRoute

BGP and link availability

Shows whether the routing sessions and the physical links on both connections are up.

ExpressRoute

Bits in and out

Shows how much of the circuit’s bandwidth is used, so you can plan an upgrade before it is full.

A simple troubleshooting path

1

Check the connection status

See whether the tunnel or circuit shows as connected, and note when it last changed.

2

Check both sides’ settings

Compare keys, encryption settings, addresses and address ranges on the Azure side and the on-premises device.

3

Check routing

Confirm that the right address ranges are announced or configured and that no ranges overlap.

4

Check security rules and firewalls

Make sure that network security groups and firewalls are not blocking the traffic you expect to flow.

i
Set Alerts

Create alerts for tunnel disconnects and for ExpressRoute link or routing problems, so your team learns about failures from the system and not from angry users.

20Understanding the Cost

The two services are priced very differently, so compare the whole bill and not just one line.

For VPN Gateway, you pay an hourly charge based on the gateway SKU you choose, plus charges for data leaving Azure. Larger SKUs cost more per hour. You also pay for the public IP addresses used. There is no separate provider fee, because the connection uses your ordinary internet service.

For ExpressRoute, the cost has several parts: a monthly charge for the circuit based on its bandwidth and SKU, a charge for the ExpressRoute gateway in your VNet, outbound data charges on metered plans, and the connectivity provider’s own fees for the physical line. Add-ons such as Global Reach or Direct ports bring extra charges. Exact prices change and vary by region, so check the official pricing pages and use the Azure pricing calculator before you commit.

Saver 1

Right-size gateways

Pick the smallest SKU that meets your measured traffic, and move up only when needed.

Saver 2

Share one gateway

Use hub-and-spoke so many VNets share one gateway instead of each paying for its own.

Saver 3

Choose the right data plan

Compare metered and unlimited plans against your real outbound data volume.

Saver 4

Use VPN as backup

A VPN is usually cheaper than a second circuit as a standby path.

!
Hidden Cost

A gateway keeps costing money every hour even when no traffic flows through it. Delete test gateways and unused circuits promptly.

21Best Practices and Mistakes to Avoid

Habits that experienced teams follow, and traps that beginners often fall into.

1

Plan addresses first

Agree on non-overlapping address ranges across all on-premises and Azure networks before building.

2

Prefer route-based VPNs with BGP

They scale better and fail over more cleanly than fixed policy-based setups.

3

Build in redundancy

Use active-active or zone-redundant gateways, both ExpressRoute connections, and a backup path.

4

Size for the future

Give the GatewaySubnet enough room and review gateway and circuit capacity as traffic grows.

5

Test and document

Rehearse failover, keep a record of settings on both sides, and review them whenever either side changes.

ANTI-PATTERN-01 Avoid
Problem

A team picks the same address range for the office network and the Azure VNet because it was convenient, then discovers the tunnel cannot route traffic correctly.

Why It’s Harmful

Overlapping ranges make destinations ambiguous, and fixing it later means renumbering networks, which is slow and risky.

Correct Approach

Plan unique, non-overlapping ranges for every network before creating anything, and reserve space for growth.

ANTI-PATTERN-02 Avoid
Problem

A company relies on a single VPN tunnel and a single gateway machine for a business-critical system.

Why It’s Harmful

One failed device, a maintenance event or a broken internet link cuts the connection, and the whole hybrid system stops working.

Correct Approach

Use active-active gateways with two tunnels, add zone redundancy, and plan a second path such as another connection or ExpressRoute with VPN backup.

ANTI-PATTERN-03 Avoid
Problem

A team assumes ExpressRoute traffic is automatically encrypted and carries regulated data across it with no further protection.

Why It’s Harmful

The line is private but not encrypted by default, so the team may break compliance rules without realizing it.

Correct Approach

Add encryption where rules require it, using application-level TLS, MACsec on Direct ports or IPsec over the circuit.

22Real-World Examples

Seeing how organizations actually use these services makes the choices easier to remember.

A small company with one office

A design studio moves its file storage and project tools to Azure. A site-to-site VPN from the office router to a mid-sized VPN gateway gives all staff secure access, and traveling designers use point-to-site connections with their work accounts. The cost is low and setup took a single afternoon.

A hospital group moving patient systems

A hospital network runs imaging systems that move very large files between hospitals and Azure. It uses ExpressRoute for steady speed, adds encryption to meet health data rules, and keeps a VPN as a standby path in case the main line fails.

A bank with strict performance needs

A bank runs trading applications split between its own data center and Azure. Delay between the two matters, so it orders two ExpressRoute circuits from different providers at different locations, with zone-redundant gateways, for resilience against any single failure.

A retailer with many stores

A retail chain connects hundreds of shops to Azure. Each shop has a small VPN device that builds a tunnel to a hub network, where shared gateways and a firewall manage the traffic centrally. Larger regional offices use ExpressRoute for heavier data.

A growing startup

A young software company starts with a VPN between its small office and Azure. As customers grow and more data moves every day, it adds an ExpressRoute circuit and keeps the VPN as a backup, increasing capacity without redesigning its network.

“Start with the road you can build today, and plan the railway you will need tomorrow.”

23Frequently Asked Questions

Q1What is the main difference between VPN Gateway and ExpressRoute?

VPN Gateway sends encrypted traffic over the public internet, so it is quick and affordable to set up but its speed varies. ExpressRoute uses a private connection built with a provider that does not cross the public internet, so it is steadier and faster but costs more and takes longer to arrange.

Q2Is ExpressRoute encrypted?

Not by default. It is private, which is not the same as encrypted. If you need encryption, you can add application-level TLS, MACsec on ExpressRoute Direct, or an IPsec VPN over the circuit.

Q3Can I use both services at the same time?

Yes. A common design uses ExpressRoute as the main path and a site-to-site VPN as a backup, with routing arranged so traffic prefers ExpressRoute and falls back to the VPN if needed.

Q4Do I need special hardware in my office for a VPN?

For a site-to-site VPN you need a compatible VPN device or firewall that supports IPsec. For point-to-site you only need client software on each user’s computer.

Q5Why does the GatewaySubnet need a special name?

Azure looks for a subnet with exactly this name to place the gateway machines. Using any other name will not work. It should also be big enough for the gateway and future features.

Q6How long does it take to set up each service?

A VPN gateway can often be built and connected within a day, although creating the gateway itself takes a while. ExpressRoute depends on a provider building a physical connection, which can take weeks.

Q7Can ExpressRoute connect to more than one VNet?

Yes. One circuit can link to several VNets, within the limits of its SKU. Premium circuits allow more connected VNets and reach across geopolitical regions.

Q8Should I use VNet peering or a VNet-to-VNet VPN to join two Azure networks?

For most cases, VNet peering is simpler, faster and cheaper because traffic stays on Microsoft’s backbone. A VNet-to-VNet VPN is useful when you specifically want an IPsec-encrypted tunnel between the networks.

24Summary and Key Takeaways

Connecting your own network to Azure is the foundation of any hybrid cloud, and Azure gives you two strong tools for it. VPN Gateway builds encrypted IPsec tunnels over the public internet and supports whole sites, single users and other virtual networks. ExpressRoute provides a private line through a connectivity provider, with steadier speed, lower delay and a choice of peering types, but it is more costly and takes longer to arrange. You have learned about gateways, subnets, SKUs, routing and BGP, circuits and peering, encryption choices, resilience designs, hub-and-spoke layouts, monitoring and cost.

The best designs start from your real needs: how much data moves, how steady the speed must be, how critical the system is, and how much time and money you have. Many organizations begin with a VPN, grow into ExpressRoute, and keep the VPN as a backup. Whatever you choose, plan address ranges first, build in redundancy, protect the connection, and test your failover.

Key Takeaways

  • Two roads to Azure — VPN Gateway uses encrypted tunnels over the internet, while ExpressRoute uses a private provider-built connection.
  • VPN has three types — site-to-site for whole networks, point-to-site for individual users, and VNet-to-VNet for linking Azure networks.
  • Choose route-based with BGP — it scales better, supports many tunnels and fails over automatically.
  • ExpressRoute is private, not encrypted — add TLS, MACsec or an IPsec tunnel if your rules require encryption.
  • Plan for failure — use active-active or zone-redundant gateways, both circuit connections and a tested backup path.
  • Share gateways in a hub — hub-and-spoke with gateway transit saves cost and simplifies management.
  • Plan addresses and cost early — avoid overlapping ranges, and compare the full bill including gateways, circuits, data and provider fees.