Virtual networks

A virtual network is a private space that starts closed

VIRTUAL NETWORK · 10.0.0.0/16one region, one subscriptionSUBNET web · 10.0.1.0/24SUBNET data · 10.0.2.0/2410.0.1.410.0.1.510.0.2.4privateInternetpublic IPA virtual network is your own private address space in Azure. Subnets divide it by role.Resources in the same virtual network reach each other by private address, across subnets, with nothing to setup. Nothing outside can reach in unless you allow it: a public IP address here, a peering or a gateway later.Splitting into subnets lets you put different rules on the web machines and on the database.

A virtual network is your private address space. Subnets divide it, and nothing gets in unless you allow it.

Virtual networks · Going deeper

What a virtual network provides

Virtual networks: what they give youIsolationEach virtual network is separate from every other until you connect themSegmentationSubnets split the address space; each resource sits in one subnetInternet communicationOutbound works by default; inbound needs a public IP address or a load balancerBetween Azure resourcesPrivate addresses inside the network; service and private endpoints for platform servicesTo your own siteVPN Gateway or ExpressRouteFilteringNetwork security groups allow or deny traffic by address, port and protocolRoutingAzure routes between subnets for you; route tables let you change the pathScopeOne region and one subscription, across all of the region's availability zonesThe network itself costs nothing. Gateways, public addresses and data leaving Azure do.

Isolation, subnets, filtering with network security groups, and routing, in one region.

Peering

Peering joins two networks, and only those two

VNET AWest EuropeVNET BWest EuropeVNET CEast USpeeringglobalpeering✗ A cannot reach C through BPeering joins two virtual networks so they behave as one. It does not pass through to a third.Traffic between peered networks uses private addresses and stays on Microsoft's own network, never the internet.It works between regions (global peering) and between subscriptions. For A to reach C you peer A with C aswell. The address ranges of peered networks must not overlap.

Peering connects two virtual networks privately. It is not transitive: A to B and B to C does not give A to C.

Peering · Going deeper

Azure DNS

Azure DNS: hosting the namesA browserwhere is shop.example?Azure DNSyour zoneanswer: 20.50.1.7Your applicationWhat it doesAnswers DNS queries for your domain from Microsoft's worldwide name serversWhat it does not doSell domain names. Buy the name from a registrar, then host its zone hereWhy use itSame sign-in, access control, logs and billing as your other Azure resourcesPrivate zonesNames that resolve only inside your virtual networks, with no DNS servers to runAlias recordsA name that follows an Azure resource, so it updates when the address changesDNS turns a name into an address. Azure DNS is the place where you keep your own records.

Azure DNS hosts your domain's records. It does not sell domain names.

Check yourself

ABC

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

Your siteAZURE VIRTUAL NETWORKThe public internetVPN gatewayencrypted tunnelA connectivity providerExpressRouteprivate circuitVPN Gateway sends encrypted traffic over the internet. ExpressRoute never touches the internet.A VPN is quick and cheap to set up, and its speed depends on the internet in between. ExpressRoute is adedicated line arranged with a provider: faster, steadier and more costly. Being private is not the same asbeing encrypted; some companies run a VPN over ExpressRoute for both.

VPN Gateway: an encrypted tunnel over the internet. ExpressRoute: a private circuit through a provider.

Connecting your site · Going deeper

VPN and ExpressRoute, side by side

VPN GatewayExpressRouteTravels overthe public interneta provider's private connectionEncryptedyes, alwaysnot by defaultSpeed and consistencylimited by the internet pathhigher, with predictable latencySet up inminutes to hoursweeks: a circuit is orderedCostlowerhigherAlso reachesthe virtual networkthe network, and Microsoft 365 servicesKinds of VPN connectionSite-to-siteYour office network to the virtual network, through a VPN device at the officePoint-to-siteOne laptop to the virtual network, from anywhereNetwork-to-networkOne virtual network to another, as an alternative to peeringA common design uses ExpressRoute as the main path and a site-to-site VPN as the backup.

A VPN is encrypted and cheap. ExpressRoute is private and predictable.

Endpoints

A private endpoint puts a service inside your network

YOUR VIRTUAL NETWORK · 10.0.1.0/2410.0.1.4Storage accountpublic endpointa public address, over the internetPrivate endpoint10.0.1.9Azure Private Link, on Microsoft's networkA private endpoint gives a platform service an address inside your own network.A storage account or database normally answers on a public endpoint that anyone on the internet can try. Aprivate endpoint is a network interface in your subnet that leads to that one service. Your machines use theprivate address, the traffic stays off the internet, and you can then switch the public endpoint off.

A public endpoint is reached over the internet. A private endpoint is a private address in your subnet.

Endpoints · Going deeper

Public, service and private endpoints

The service is reached atTraffic travelsWho can try to connectPublic endpointa public IP addressover the internetanyone; its firewall and sign-in decideService endpointthe same public addresson Microsoft's networkonly the subnets you listPrivate endpointa private address in your networkon Microsoft's networkonly what can reach your networkThe study guide asks you to define public and private endpoints. The service endpoint sits between them.With a private endpoint the service appears to be inside your network, so it can also be reached from your ownsite across a VPN or ExpressRoute. A public IP address on a virtual machine or load balancer is also a publicendpoint: it is how people on the internet reach something you host.

Three kinds of endpoint differ in the address used and in who can try to connect.

Check yourself

DatacentreAzurePath 1: through the internet, encryptedPath 2: a provider's private circuit

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

Your virtualnetworkPeople on the internetpublic IP addressYour office, over the internetVPN GatewayYour office, on a private lineExpressRouteAnother virtual networkpeeringA storage account or databaseprivate endpointA name: shop.exampleAzure DNSSix connections, six names. A networking question describes one of them and asks what it is called.The left side is how the outside world reaches your network. The right side is how your network reaches otherthings in Azure, and how a name finds it. None of these exists until you create it: on its own, a virtualnetwork is closed.

Public IP, VPN Gateway, ExpressRoute, peering, private endpoint, Azure DNS.

The whole picture · Going deeper

Clue words for networking

When the question saysThe service isBecause it"isolated network in Azure", "private address space"Azure Virtual Networkyour own network"separate the web tier from the database tier"Subnetsdivide a network"connect two virtual networks"Peeringprivate, on Microsoft's network"encrypted connection over the internet to the office"VPN Gateway (site-to-site)a tunnel"one laptop from home"VPN Gateway (point-to-site)a tunnel for one device"does not use the public internet", "dedicated"ExpressRoutea private circuit"host our domain's records"Azure DNSnames to addresses"reach the service by a private IP"Private endpointAzure Private Link"reachable from the internet"Public endpointa public addressInternet and encrypted: VPN. Private and dedicated: ExpressRoute. Network to network: peering.

Each connection has a clue phrase: internet and encrypted, private and dedicated, network to network.

Check yourself

VIRTUAL NETWORK · 10.0.1.0/24VM10.0.1.4?10.0.1.9Storageaccount

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.

Open in a new tab