Migrate to an availability zone-enabled ExpressRoute virtual network gateway in Azure portal

When you create an ExpressRoute virtual network gateway, you need to choose the gateway SKU. If you choose a higher-level SKU, more CPUs and network bandwidth are allocated to the gateway. As a result, the gateway can support higher network throughput and more dependable network connections to the virtual network.

The following SKUs are available for ExpressRoute virtual network gateways:

  • Standard
  • HighPerformance
  • UltraPerformance
  • ErGw1Az
  • ErGw2Az
  • ErGw3Az
  • ErGwScale (Preview)

Prerequisites

Add a second prefix to the gateway subnet

The gateway subnet needs two or more address prefixes for migration. If you have only one prefix, you can add a second prefix by following these steps.

  1. First, update the Az.Network module to the latest version by running this PowerShell command:

    Update-Module -Name Az.Network -Force
    
  2. Then, add a second prefix to the GatewaySubnet by running these PowerShell commands:

    $vnet = Get-AzVirtualNetwork -Name $vnetName -ResourceGroupName $resourceGroup
    $subnet = Get-AzVirtualNetworkSubnetConfig -Name GatewaySubnet -VirtualNetwork $vnet
    $prefix = "Enter new prefix"
    $subnet.AddressPrefix.Add($prefix)
    Set-AzVirtualNetworkSubnetConfig -Name GatewaySubnet -VirtualNetwork $vnet -AddressPrefix $subnet.AddressPrefix
    Set-AzVirtualNetwork -VirtualNetwork $vnet
    

Migrate to a new gateway in Azure portal

Here are the steps to migrate to a new gateway in Azure portal.

  1. In the Azure portal, navigate to your Virtual Network Gateway resource.

  2. the left-hand menu under Settings, select Gateway SKU Migration.

    Screenshot of Gateway migration location.

  3. Select Validate to check if the gateway is ready for migration. You'll first see a list of prerequisites that must be met before migration can begin. If these prerequisites aren't met, validation fails and you can't proceed.

    Screenshot of the validate step for migrating a virtual network gateway.

  4. Once validation is successful, you enter the Prepare stage. Here, a new Virtual Network gateway is created. Under Virtual Network Gateway Details, enter the following information.

    Screenshot of the Prepare stage for migrating a virtual network gateway.

    Setting Value
    Gateway Name Enter a name for the new gateway.
    Gateway SKU Select the SKU for the new gateway.
    Public IP Address Select Add new, then enter a name for the new public IP, select your availability zone, and select OK

    Note

    Be aware that your existing Virtual Network gateway will be locked during this process, preventing any creation or modification of connections to this gateway.

  5. Select Prepare to create the new gateway. This operation could take up to 15 minutes.

  6. After the new gateway is created, you'll proceed to the Migrate stage. Here, select the new gateway you created. In this example, it's myERGateway_migrated. This transfers the settings from your old gateway to the new one. All network traffic, control plane, and data path connections from your old gateway will transfer without any interruptions. To start this process, select Migrate Traffic. This operation could take up to 5 minutes.

    Screenshot of migrating traffic for migrating a virtual network gateway.

  7. After the traffic migration is finished, you'll proceed to the Commit stage. In this stage, you finalize the migration, which involves deleting the old gateway. To do this, select Commit Migration. This final step is designed to occur without causing any downtime.

    Screenshot of the commit step for migrating a virtual network gateway.

Important

  • Before running this step, verify that the new virtual network gateway has a working ExpressRoute connection.
  • When migrating your gateway, you can expect possible interruption for a maximum of 30 seconds.

Next steps