Virtual Network Gateways

Note: Virtual network gateways are a crucial component for connecting your virtual networks to on-premises networks or to other virtual networks.

What is a Virtual Network Gateway?

A virtual network gateway is a logical network resource that is used to send encrypted traffic between your Azure virtual network and your on-premises network through the public internet. It is also used to send traffic between your virtual networks in Azure.

There are two types of virtual network gateways:

VPN Gateways

VPN gateways provide a secure and encrypted tunnel over the public internet. They are suitable for various connectivity needs, including:

Configuring a VPN Gateway

To configure a VPN gateway, you typically need to:

  1. Create a virtual network gateway resource in Azure.
  2. Create a local network gateway to represent your on-premises network.
  3. Create a connection resource to link the virtual network gateway and the local network gateway.

Example Azure CLI command to create a VPN gateway:

az network vnet-gateway create --name MyVPNGateway --resource-group MyResourceGroup --location eastus --public-ip-address MyPublicIP --gateway-type Vpn --vpn-type RouteBased --sku VpnGw1 --vnet MyVNet

ExpressRoute Gateways

ExpressRoute gateways facilitate a private, dedicated connection to Azure. This offers several advantages:

An ExpressRoute gateway is created within your Azure virtual network and then linked to an ExpressRoute circuit provisioned with a connectivity provider.

Tip: For mission-critical applications requiring guaranteed performance and high bandwidth, ExpressRoute is the recommended solution.

Key Considerations

Understanding and properly configuring virtual network gateways is fundamental to establishing secure and efficient hybrid and multi-cloud architectures on Azure.

Important: Always consult the latest Azure documentation for specific configuration steps and pricing details, as these can change over time.