0
0
Azurecloud~30 mins

VPN Gateway for hybrid connectivity in Azure - Mini Project: Build & Apply

Choose your learning style9 modes available
VPN Gateway for hybrid connectivity
📖 Scenario: You work for a company that wants to connect their on-premises network securely to their Azure virtual network. They want to use a VPN Gateway to create a hybrid connection.
🎯 Goal: Build an Azure VPN Gateway configuration that connects an on-premises network to an Azure virtual network using a site-to-site VPN.
📋 What You'll Learn
Create a resource group named HybridNetworkRG
Create a virtual network named HybridVNet with address space 10.1.0.0/16
Create a subnet named GatewaySubnet with address prefix 10.1.255.0/27
Create a public IP address resource named VpnGatewayPublicIP
Create a VPN Gateway named HybridVpnGateway in the resource group
Configure the VPN Gateway with VpnGw1 SKU and RouteBased VPN type
Create a local network gateway named OnPremisesGateway with on-premises address space 192.168.0.0/24 and IP address 203.0.113.1
Create a VPN connection named SiteToSiteConnection between the VPN Gateway and the local network gateway
Use a shared key Azure123! for the VPN connection
💡 Why This Matters
🌍 Real World
Companies use VPN Gateways to securely connect their on-premises networks to Azure virtual networks, enabling hybrid cloud scenarios.
💼 Career
Cloud engineers and network administrators often configure VPN Gateways to establish secure hybrid connectivity between cloud and on-premises environments.
Progress0 / 4 steps
1
Create the resource group and virtual network
Create a resource group named HybridNetworkRG in eastus location. Then create a virtual network named HybridVNet with address space 10.1.0.0/16 inside the resource group. Also create a subnet named GatewaySubnet with address prefix 10.1.255.0/27 inside the virtual network.
Azure
Need a hint?

Use Azure CLI or ARM template syntax to define resource group and virtual network with subnet.

2
Create the public IP address for the VPN Gateway
Create a public IP address resource named VpnGatewayPublicIP in the resource group HybridNetworkRG. Use Standard SKU and Static allocation method.
Azure
Need a hint?

Public IP for VPN Gateway must be static and standard SKU for reliability.

3
Create the VPN Gateway and local network gateway
Create a VPN Gateway named HybridVpnGateway in resource group HybridNetworkRG using the subnet GatewaySubnet from HybridVNet. Use SKU VpnGw1 and VPN type RouteBased. Then create a local network gateway named OnPremisesGateway with IP address 203.0.113.1 and address space 192.168.0.0/24.
Azure
Need a hint?

VPN Gateway must use the GatewaySubnet and public IP. Local network gateway defines on-premises network.

4
Create the VPN connection with shared key
Create a VPN connection named SiteToSiteConnection between the VPN Gateway HybridVpnGateway and the local network gateway OnPremisesGateway. Use the shared key Azure123! for the connection.
Azure
Need a hint?

VPN connection links the Azure VPN Gateway and on-premises local network gateway using a shared key.