Virtual networks
A virtual network is a private space that starts closed
A virtual network is your private address space. Subnets divide it, and nothing gets in unless you allow it.
Everything you run in Azure that has an address sits in a virtual network. It is a private range of addresses that belongs to you, in one region and one subscription. You divide it into subnets, usually by role: here one for web machines and one for data. Resources get private addresses and can reach each other across subnets without any setup. The internet reaches only what you give a public address to. The database has none, so it cannot be reached from outside.
Virtual networks · Going deeper
What a virtual network provides
Isolation, subnets, filtering with network security groups, and routing, in one region.
Peering
Peering joins two networks, and only those two
Peering connects two virtual networks privately. It is not transitive: A to B and B to C does not give A to C.
Two virtual networks are separate until you connect them. Peering joins a pair, so that machines on each side reach the other by private address over Microsoft's own network. It works between regions too, where it is called global peering. But a peering covers only its two networks. A is peered with B, and B with C, yet A cannot reach C through B. For that, you peer A with C directly.
Peering · Going deeper
Azure DNS
Azure DNS hosts your domain's records. It does not sell domain names.
Check yourself
The networks are peered as the arrows show. Can a virtual machine in A reach one in C?
Connecting your site
A VPN crosses the internet encrypted; ExpressRoute avoids it
VPN Gateway: an encrypted tunnel over the internet. ExpressRoute: a private circuit through a provider.
To join your own site to a virtual network there are two choices. A V P N gateway builds an encrypted tunnel across the public internet. It is quick to set up and inexpensive, and only as fast as the internet path. ExpressRoute is a private circuit that a connectivity provider runs between your site and Microsoft. The traffic never touches the public internet, so it is faster and steadier, and it costs more.
Connecting your site · Going deeper
VPN and ExpressRoute, side by side
A VPN is encrypted and cheap. ExpressRoute is private and predictable.
Endpoints
A private endpoint puts a service inside your network
A public endpoint is reached over the internet. A private endpoint is a private address in your subnet.
Platform services such as a storage account live outside your virtual network. By default you reach one through its public endpoint: a public address, over the internet. A private endpoint is a network interface in your own subnet with a private address. It leads to that one service across Azure Private Link, on Microsoft's network. Your machines now talk to a private address, and the public endpoint can be switched off.
Endpoints · Going deeper
Public, service and private endpoints
Three kinds of endpoint differ in the address used and in who can try to connect.
Check yourself
A bank requires that traffic between its datacentre and Azure never crosses the public internet. Which path, and what is it called?
The whole picture
Six ways in and out, each with its own name
Public IP, VPN Gateway, ExpressRoute, peering, private endpoint, Azure DNS.
Here is every connection from this lesson around one virtual network. People on the internet come in by a public address. Your office comes in over the internet through a V P N gateway, or on a private line through ExpressRoute. Another virtual network is joined by peering. A storage account or database is reached through a private endpoint. And a name finds the network through Azure D N S.
The whole picture · Going deeper
Clue words for networking
Each connection has a clue phrase: internet and encrypted, private and dedicated, network to network.
Check yourself
The virtual machine reaches the storage account at 10.0.1.9. What is the item marked with a question mark?
Lesson complete
You finished “Networking on Azure”
Answer the questions along the way to see your score here.