Module 13: Advanced Networking

Module 13Level 4Azure Operations Administrator

Advanced Networking

Connecting Snips to the world·60 minutes

Azure VPN GatewaySite-to-site VPNAzure ExpressRoute conceptsAzure BastionAzure Load Balancer+4 more
The situation

Connecting Snips to the world

The Snips on-premises network needs to connect to Azure so that staff can access the Contractor Document Portal from the office without going over the public internet. The portal also needs to be load-balanced across multiple VMs to handle peak demand. And the Security team wants all management access to VMs to go through a secure bastion host.

This module extends the simple VNet from Module 5 into a production-grade network architecture that connects on-premises, secures management access and distributes traffic.

What you will learn

Azure VPN Gateway
Site-to-site VPN
Azure ExpressRoute concepts
Azure Bastion
Azure Load Balancer
Azure Application Gateway
Azure Front Door concepts
Private Link and Private Endpoints
Network Watcher

Connectivity options

Azure offers several ways to connect your on-premises network and manage VMs. Select each option to understand when to use it:

OptionMediumCost
Site-to-site VPNPublic internet (encrypted)Low
ExpressRoutePrivate dedicated circuitHigh
Azure BastionTLS over HTTPS (443)Medium
VNet peeringAzure backboneLow (per GB)

Azure VPN Gateway

Azure VPN Gateway creates an encrypted IPsec/IKE tunnel between your on-premises network and Azure over the public internet. It requires a compatible VPN device on-premises and a dedicated GatewaySubnet in your Azure VNet.

GatewaySubnet

A dedicated subnet (must be named GatewaySubnet) required for VPN Gateway and ExpressRoute Gateway. Minimum /27, recommended /26.

Local network gateway

Represents your on-premises VPN device in Azure. Contains the on-premises public IP address and address space.

Connection

Links the Azure VPN Gateway to the local network gateway. Defines the shared key and connection type (IPsec).

Active-active mode

Two VPN Gateway instances for high availability. Eliminates the single point of failure in the default active-standby configuration.

VPN Gateway deployment takes 30–45 minutes. Plan accordingly — you cannot speed this up. The GatewaySubnet must not contain any other resources (no VMs, no Bastion, no other services).

Azure Bastion

Azure Bastion provides secure browser-based RDP and SSH access to VMs without requiring public IP addresses or open RDP/SSH ports. Access is through the Azure Portal over HTTPS.

Deploy Bastion into a dedicated AzureBastionSubnet (minimum /26). Once deployed, you can connect to any VM in the VNet (and peered VNets with the right SKU) without a public IP on the VM. Remove public IPs from VMs once Bastion is in place.

Load balancing options

Azure Load Balancer (Layer 4)

Distributes TCP/UDP traffic across backend VMs. Operates at the transport layer — no awareness of HTTP content. Supports internal (private) and public configurations.

Azure Application Gateway (Layer 7)

HTTP/HTTPS load balancer with SSL termination, URL-based routing, cookie-based session affinity and Web Application Firewall (WAF).

Azure Front Door

Global HTTP load balancer and CDN. Routes traffic to the nearest healthy backend across multiple regions. Includes WAF and DDoS protection.

Private Endpoints bring Azure PaaS services (storage, Key Vault, SQL, etc.) into your VNet with a private IP address. Traffic to the service flows through the VNet backbone rather than the public internet.

Private Endpoint

A network interface in your VNet with a private IP that maps to a specific PaaS service instance. The service's public endpoint can then be disabled.

Private DNS zone

Required for Private Endpoints to work correctly. Maps the service's public DNS name to the private IP address within the VNet.

Advanced networking CLI commands

bash
# Create a VPN Gateway (takes 30–45 minutes)
az network vnet-gateway create \
  --name vpngw-snips-prod-uks-001 \
  --resource-group rg-network-prod-uks-001 \
  --vnet vnet-snips-prod-uks-001 \
  --gateway-type Vpn \
  --vpn-type RouteBased \
  --sku VpnGw1 \
  --public-ip-address pip-vpngw-snips-prod-uks-001

# Deploy Azure Bastion
az network bastion create \
  --name bastion-snips-prod-uks-001 \
  --resource-group rg-network-prod-uks-001 \
  --vnet-name vnet-snips-prod-uks-001 \
  --public-ip-address pip-bastion-snips-prod-uks-001 \
  --location uksouth

# Create a Private Endpoint for Key Vault
az network private-endpoint create \
  --name pe-kv-snips-prod-uks-001 \
  --resource-group rg-network-prod-uks-001 \
  --vnet-name vnet-snips-prod-uks-001 \
  --subnet snet-app-prod-uks-001 \
  --private-connection-resource-id "/subscriptions/<sub-id>/resourceGroups/rg-security-prod-uks-001/providers/Microsoft.KeyVault/vaults/kv-snips-prod-uks-001" \
  --group-id vault \
  --connection-name conn-kv-snips-prod
Hands-on lab: Extend the Snips network
  1. 1.Add a GatewaySubnet (/27) and AzureBastionSubnet (/26) to the Snips VNet.
  2. 2.Deploy Azure Bastion and connect to the Contractor Document Portal VM through it.
  3. 3.Create an internal Azure Load Balancer and add the VM to the backend pool.
  4. 4.Create a Private Endpoint for the Key Vault and verify DNS resolution returns the private IP.
  5. 5.Use Network Watcher IP flow verify to test connectivity between two subnets.

1.Snips needs to connect its on-premises data centre to Azure over the public internet with an encrypted tunnel. Which service provides this?

2.The Head of Digital & IT wants to connect to Azure VMs securely without exposing RDP or SSH ports to the internet at all. Which service provides browser-based VM access?

3.Snips wants to distribute incoming HTTP traffic across three identical VMs running the Contractor Document Portal. Which service operates at Layer 4 (TCP/UDP)?

4.What is the purpose of a Private Endpoint?

5.Network Watcher shows that traffic between two VMs is being dropped. Which Network Watcher tool helps you identify which NSG rule is causing the block?

Module summary

The Snips network is now production-grade. On-premises connectivity is in place via VPN Gateway, VM management is secured through Bastion, traffic is distributed by Load Balancer, and PaaS services are accessed privately through Private Endpoints.

Ready to mark this module complete?

Mark complete when you have read all sections, attempted the lab and completed the knowledge check.

AZ-104 objectives covered
  • Configure and manage virtual networking