Archive Calculate
Migrate VPN gateways from Classic to Resource Manager

Migrate VPN gateways from Classic to Resource Manager

2024-11-13 VPN Gateway classic to Resource Manager migration Article11/11/2024 In this article VPN gateway can now be migrate from the classic

Related articles

在 Oracle Cloud 搭建終身免費 VPN 服務 Mech Arena Codes (November 2024) How to play Xbox games on the Meta Quest 3

VPN Gateway classic to Resource Manager migration

  • Article

VPN gateway can now be migrate from the classic deployment model to Resource Manager deployment model . For more information , see Resource Manager deployment model . In this article , we is discuss discuss how to migrate from classic deployment to the Resource Manager model .

Important

You can no longer create new virtual network gateways for classic deployment model (service management) virtual networks. New virtual network gateways can be created only for Resource Manager virtual networks.

VPN gateways begin with a VNet migration from classic to Resource Manager. This migration is done by customers one VNet at a time. There aren’t additional requirements in terms of tools or prerequisites to begin the VNet migration. Migration steps are identical to the existing VNet migration and are documented at IaaS resources migration page.

There isn’t a data path downtime during VNet migration and thus existing workloads continue to function without the loss of on-premises connectivity during migration. The public IP address associated with the VPN gateway doesn’t change during the migration process. This implies that you won’t need to reconfigure your on-premises router once the migration is completed.

Once the VNet migration is completed, Azure will attempt to complete the remainder of the gateway migration to Resource Manager. If the gateway migration does not succeed, customers may be informed to delete their VPN Gateway (classic deployment) and create a new VPN gateway (Resource Manager). If no action is taken by the customer, the existing VPN Gateway (classic deployment) may be decommissioned. Customers can visit the FAQ for additional information and to minimize downtime during migration from classic to Resource Manager.

The Resource Manager model is different from the classic model and is composed of virtual network gateways, local network gateways and connection resources. These represent the VPN gateway itself, the local-site representing on premises address space and connectivity between the two respectively. Once migration is completed, your gateways won’t be available in the classic model and all management operations on virtual network gateways, local network gateways, and connection objects must be performed using the Resource Manager model.

Locating a classic VPN gateway

To locate a classic VPN gateway via PowerShell, you will need to install the Azure PowerShell Service Management module. Start here: Installing the Azure PowerShell Service Management module. To view classic resources, you will need co-admin or owner permissions. You can’t use Az cmdlets to access classic resources.

To locate a classic vpn gateway via Azure portal , open the portal and search for ” Virtual network(classic ) ” . select your classic virtual network and navigate to the gateway blade to find your classic virtual network gateway .

Supported scenarios

Most common VPN connectivity scenarios are covered by classic to Resource Manager migration. The supported scenarios include:

  • Point-to-site connectivity
  • site – to – site connectivity with VPN Gateway connect to on premise location
  • VNet-to-VNet connectivity between two VNets using VPN gateways
  • Multiple VNets connected to same on-premises location
  • Multi-site connectivity
  • Forced tunneling enabled VNets

Scenarios that aren’t supported include:

  • vnet with both an ExpressRoute gateway and a vpn gateway is n’t currently support .
  • Transit scenarios where VM extensions are connected to on-premises servers. transit VPN connectivity limitations are detailed in the next sections.

Note

CIDR validation in the Resource Manager model is stricter than the one in the classic model. Before migrating, ensure that classic address ranges given conform to valid CIDR format before beginning the migration. CIDR can be validated using any common CIDR validators. VNet or local sites with invalid CIDR ranges when migrated result in a failed state.

vnet – to – vnet connectivity migration

VNet-to-VNet connectivity in the classic deployment model was achieved by creating a local site representation of the connected VNet. Customers were required to create two local sites that represented the two VNets which needed to be connected together. These were then connected to the corresponding VNets using IPsec tunnel to establish connectivity between the two VNets. This model has manageability challenges, since any address range changes in one VNet must also be maintained in the corresponding local site representation. In the Resource Manager model, this workaround is no longer needed. The connection between the two VNets can be directly achieved using ‘Vnet2Vnet’ connection type in the Connection resource.

During VNet migration, we detect that the connected entity to the current VNet’s VPN gateway is another VNet. We ensure that once migration of both VNets is completed, you no longer see two local sites representing the other VNet. The classic model of two VPN gateways, two local sites, and two connections between them is transformed to the Resource Manager model with two VPN gateways and two connections of type Vnet2Vnet.

transit VPN connectivity

You can configure VPN gateways in a topology such that on-premises connectivity for a VNet is achieved by connecting to another VNet that is directly connected to on-premises. This is transit VPN connectivity, where instances in first VNet are connected to on-premises resources via transit to the VPN gateway in the connected VNet that’s directly connected to on-premises. To achieve this configuration in classic deployment model, you need to create a local site that has aggregated prefixes representing both the connected VNet and on-premises address space. This representational local site is then connected to the VNet to achieve transit connectivity. The classic model also has similar manageability challenges since any change in the on-premises address range must also be maintained on the local site representing the aggregate of VNet and on-premises. Introduction of BGP support in Resource Manager supported gateways simplifies manageability, since the connected gateways can learn routes from on-premises without manual modification to prefixes.

Since we transform VNet-to-VNet connectivity without requiring local sites, the transit scenario loses on-premises connectivity for the VNet that is indirectly connected to on-premises. The loss of connectivity can be mitigated in the following two ways, after migration is completed:

  • Enable BGP on VPN gateways that are connected together and to the on-premises location. Enabling BGP restores connectivity without any other configuration changes since routes are learned and advertised between VNet gateways. Note that the BGP option is only available on Standard and higher SKUs.
  • Establish an explicit connection from affected VNet to the local network gateway that represents the on-premises location. This would also require changing configuration on the on-premises router to create and configure the IPsec tunnel.

Next step

After learning about VPN gateway migration support, go to platform-supported migration of IaaS resources from classic to Resource Manager to get started.