Reaching Azure privately: VPN Gateway, ExpressRoute and endpoints

The private ways into Azure and what each one is actually promising: the three shapes of VPN connection, why an ExpressRoute circuit is private without being encrypted, and how a private endpoint differs from locking down a public one.

Lesson 7 of 11 in objective architecture-and-services. Azure architecture and services, part of Microsoft Certified: Azure Fundamentals (AZ-900).

Three ways to reach Azure from outside it, and what each one really guarantees. Point-to-site — What it joins: One device; The path it uses: A tunnel over the internet; Encrypted by default: Yes. Site-to-site — What it joins: A whole network; The path it uses: A tunnel over the internet; Encrypted by default: Yes. ExpressRoute — What it joins: A network, via a provider; The path it uses: A private circuit; Encrypted by default: No — you add it Point-to-site Site-to-site ExpressRoute What it joins One device A whole network A network, via a provider The path it uses A tunnel over the internet A tunnel over the internet A private circuit Encrypted by default Yes Yes No — you add it
Three ways to reach Azure from outside it, and what each one really guarantees.

Three shapes of VPN connection

A VPN gateway is a resource you deploy into a virtual network, in a subnet Azure requires you to name GatewaySubnet, and it terminates encrypted tunnels that run across the public internet. It offers three shapes and the exam expects you to match them to a scenario. Point-to-site connects a single client device from wherever it happens to be, which is the answer whenever one remote person needs occasional private access and there is no VPN hardware at their end.

Site-to-site connects an entire on-premises network, and it needs a VPN device with a public address at the far end — which a home laptop is not, and that mismatch is how the two are told apart in a question. Network-to-network joins two virtual networks through gateways, for the cases where peering is not what you want. All three are tunnels over a path nobody controls, so all three are encrypted because they have to be, and all three inherit the internet's variability in throughput and latency.

ExpressRoute buys a path, not confidentiality

ExpressRoute is a private connection arranged through a connectivity provider: the traffic does not traverse the public internet at all, and the circuit is bought at a committed bandwidth rather than depending on whatever the internet is doing today. That is what makes it the answer for continuous bulk transfer, for predictable latency, and for regulators who object to public transit. It takes a provider and a lead time, which is why it is the wrong-sized answer for one developer working from home.

The distinction that makes the hard question: private and encrypted are two different words, and auditors usually mean the second. A site-to-site VPN encrypts because it crosses the public internet; ExpressRoute solves that problem by avoiding the internet rather than by encrypting, so its traffic is not encrypted by the platform. Where data must be confidential in transit you add that yourself — an encrypted tunnel run across the circuit, or TLS in the application — and needing both a private path and encryption is an ordinary design rather than a contradiction.

Public endpoints, and the private ones that replace them

Every platform service — a storage account, a database, a key vault — starts life with a public endpoint: a public name and a public address that anyone on the internet may at least attempt to reach, with authentication and firewall rules deciding who actually succeeds. Narrowing that firewall is a real control and it is not the same thing as making the service private, because the resource is still reached at its public address.

A private endpoint changes the address itself. It places a network interface holding a private IP from your own subnet in front of the service, so the service is reachable inside your network — and therefore over a VPN or an ExpressRoute circuit — while its public access can be switched off entirely. Name resolution has to follow the address, which is why a private DNS zone normally goes with it, otherwise the service's name still resolves to the public address it no longer uses.

Restricting the public door, against installing a private one. A firewall rule — The address you use: Still the public name and address; Where the traffic goes: To the public endpoint, from allowed sources; What you can switch off: Who may use the public door. A private endpoint — The address you use: A private IP from your own subnet; Where the traffic goes: Inside your network, over VPN or ExpressRoute; What you can switch off: Public access, entirely A firewall rule A private endpoint The address you use Still the public name and address A private IP from your own subnet Where the traffic goes To the public endpoint, from allowed sources Inside your network, over VPN or ExpressRoute What you can switch off Who may use the public door Public access, entirely
Restricting the public door, against installing a private one.

Worth carrying in

VPN Gateway
Terminates encrypted tunnels over the internet. Lives in its own GatewaySubnet.
Point-to-site
One client device into a virtual network. No VPN hardware needed at the far end.
Site-to-site
A whole on-premises network, via a VPN device with a public address.
Network-to-network
Two virtual networks joined through gateways, when peering is not what you want.
ExpressRoute
A private circuit through a connectivity provider. Committed bandwidth, no public transit, no encryption by default.
Public endpoint
The public name and address a platform service is reachable at by default.
Private endpoint
A network interface with a private IP from your subnet, standing in front of a service.

What the exam does with this

Objective
architecture-and-services. Azure architecture and services
Share of the exam
38.46% (the whole objective)
Questions in this lesson
4
Signed for by a person
0

Partly checked. None of the 4 questions here has been read against the cited source by a person. 4 questions have been checked against their cited clause by an automated pass — which is not the same thing, and is not a signature.

Only questions a person has signed for are used in mock exams here. That is the whole difference between the two kinds of checking above.

Questions in this lesson

Drill this lesson

A lesson is one sitting: the trainer draws a short run from these questions alone and spaces the ones you get wrong.

Practise Reaching Azure privately: VPN Gateway, ExpressRoute and endpoints

The rest of objective architecture-and-services