Express Route Gateway migration not working and throwing error "Gateway subnet needs two or more address prefixes for migration"

sunil cherukuri 20 Reputation points
2024-05-20T07:01:47.92+00:00

Express Route Gateway migration not working and throwing error "Gateway subnet needs two or more address prefixes for migration"

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,554 questions
Azure ExpressRoute
Azure ExpressRoute
An Azure service that provides private connections between Azure datacenters and infrastructure, either on premises or in a colocation environment.
381 questions
{count} votes

Accepted answer
  1. akinbade abiola 18,290 Reputation points
    2024-05-20T08:43:51.53+00:00

    Hello sunil cherukuri,

    Thanks for your question.

    You will need to verify the current address prefixes allocated to the gateway subnet as The gateway subnet needs two or more address prefixes for migration.

    To verify you can use the Azure CLI:

    https://learn.microsoft.com/en-us/cli/azure/network/vnet/subnet?view=azure-cli-latest#az-network-vnet-subnet-show-examples

    az network vnet subnet show -g MyResourceGroup -n MySubnet --vnet-name MyVNet -n <GatewaySubnet>

    To add this See:

    https://learn.microsoft.com/en-us/azure/expressroute/expressroute-howto-gateway-migration-portal#add-a-second-prefix-to-the-gateway-subnet

    Please let me know if you have further questions

    You can mark it 'Accept Answer' if this helped.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.