Advanced Networking
Connecting Snips to the world·60 minutes
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
Connectivity options
Azure offers several ways to connect your on-premises network and manage VMs. Select each option to understand when to use it:
| Option | Medium | Cost |
|---|---|---|
| Site-to-site VPN | Public internet (encrypted) | Low |
| ExpressRoute | Private dedicated circuit | High |
| Azure Bastion | TLS over HTTPS (443) | Medium |
| VNet peering | Azure backbone | Low (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.
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.
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 Link and Private Endpoints
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
# 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- 1.Add a GatewaySubnet (/27) and AzureBastionSubnet (/26) to the Snips VNet.
- 2.Deploy Azure Bastion and connect to the Contractor Document Portal VM through it.
- 3.Create an internal Azure Load Balancer and add the VM to the backend pool.
- 4.Create a Private Endpoint for the Key Vault and verify DNS resolution returns the private IP.
- 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.
- Configure and manage virtual networking