VPN gateway and ExpressRoute

ExplainedNetworkingAzure Portal, Hands OnBy Cloud Hands On

Two ways to join your office or datacentre network to Azure privately.

A VPN gateway connects your office network to an Azure virtual network through an encrypted tunnel over the internet. Your office router (or firewall) and the gateway agree a shared key and then pass traffic privately.

ExpressRoute is a private line from your datacentre to Microsoft, supplied by a connectivity provider. Traffic never touches the public internet, speeds are guaranteed, and it can reach Microsoft 365 as well as Azure.

Cost. A VPN gateway is billed every hour it exists: the common sizes are about 140 USD a month or more, and it takes 30 to 45 minutes to create. ExpressRoute needs a contract with a connectivity provider. Neither is practical for practice.

Use it when

How it works

Gateway subnet
The gateway needs its own subnet, which must be named GatewaySubnet.
Local network gateway
An Azure resource that describes your office side: its public IP address and its address ranges.
Connection
Joins the two, with a shared key (site-to-site) or certificates or Entra sign-in for users (point-to-site).
Circuit
For ExpressRoute: the private connection the provider sets up, with a chosen speed.

Options

Site-to-site VPN
Office network to Azure, through an internet tunnel.
Point-to-site VPN
Individual laptops to Azure, using the Azure VPN Client.
ExpressRoute
Private line from a provider, from 50 Mbps up to many Gbps.

Example. Ironbridge Payments joins its London office to Azure with a site-to-site VPN for everyday use, and its datacentre with ExpressRoute for the nightly transfer of payment files.

Don't confuse it with

Virtual network peering
Joins two Azure networks to each other. No gateway needed.
Azure Bastion
Lets admins reach VMs from the browser. It doesn't join whole networks.

Words to know

Tunnel
An encrypted connection that carries private traffic across the internet.
Site-to-site
A VPN between two networks.
Point-to-site
A VPN from one device to a network.
Circuit
An ExpressRoute connection of a given speed.

Where to look

  1. Home
  2. Virtual network gateways
  3. + Create

Practise it

Read it in the guide, next to the tasks and labs.

Open in Azure Portal, Hands On

Keep going