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 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.
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
- "Not on the public internet" points at ExpressRoute; "encrypted" points at a VPN tunnel. The exam separates the two words deliberately and offers an answer that conflates them.
- ExpressRoute is not encrypted by default. An option claiming the platform encrypts it has borrowed the VPN's property and applied it to the wrong service.
- One remote person is point-to-site; a whole office with a VPN device is site-to-site. The tell is whether there is hardware at the far end.
- A firewall rule on a public endpoint leaves the service at its public address. Only a private endpoint gives it an address inside your own space.
- Peering joins two Azure virtual networks and can never join Azure to a datacentre or to a platform service. That distractor appears in both networking lessons.
- 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
- A bank moves tens of terabytes a day between its own datacentre and Azure. It needs predictable throughput, and its regulator objects to that traffic crossing the public internet at all. Which connectivity option should it buy? machine-checked
- A developer working from home occasionally needs to reach a database that has only a private IP address inside an Azure virtual network. There is no VPN device at the developer's end and no office network to connect. What is the appropriate answer? machine-checked
- A storage account must be reachable from your virtual network and nowhere else, addressed by a private IP from your own address space so that on-premises staff reach it through the existing VPN. What do you configure? machine-checked
- An auditor asks whether the traffic flowing over your ExpressRoute circuit is encrypted. What is the accurate answer? machine-checked
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
- Regions, region pairs, availability zones and datacentres
- Resources, resource groups, subscriptions and management groups
- Virtual machines, containers and functions compared
- Virtual machine options, and what a virtual machine needs
- Hosting an application: web apps, containers and virtual machines
- Virtual networks, subnets, peering and Azure DNS
- Reaching Azure privately: VPN Gateway, ExpressRoute and endpoints — you are here
- Storage accounts, storage services, tiers and redundancy
- Moving files and migrating workloads into Azure
- Microsoft Entra ID, authentication and role-based access control
- Zero Trust, defence in depth and Defender for Cloud