Azure VPN Gateway - resource is stuck in a Microsoft-managed migration state and cannot be modified.

Jonah Wermter 0 Reputation points
2026-08-03T12:54:50.6733333+00:00

Production Azure VPN Gateway is operational and passing existing VPN traffic, however all configuration changes fail. Gateway SKU: VpnGw2AZ

Observed behavior: - NAT rule creation fails - Tag updates fail - Any write operation against the gateway fails

Error returned: CannotMakeChangesToGatewayDuringMigration

Gateway details: provisioningState = Succeeded virtualNetworkGatewayMigrationStatus: state = InProgress phase = ExecuteSucceeded errorMessage = ""

This appears to be an Azure-side migration state that never completed. Impact: Unable to modify VPN Gateway configuration to implement a new site-to-site VPN connection required for an application integration project. Please review and clear the migration state or provide remediation steps.

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 answer

Sort by: Most helpful
  1. AI answer

    2026-08-03T12:55:06.4633333+00:00

    The gateway is in an active migration state, and Azure blocks all configuration changes while that state remains in progress. That matches the CannotMakeChangesToGatewayDuringMigration error and explains why NAT rule creation, tag updates, and other write operations fail even though traffic continues to pass.

    Supported remediation steps:

    1. In the Azure portal, open the virtual network gateway resource.
    2. Go to Settings > Configuration.
    3. If the Migrate tab is available, use it to check the current migration state.
    4. If validation shows the migration did not complete correctly, use Abort to roll back the migration state.
      • After a successful abort, gateway changes should be allowed again.
      • If traffic validation is successful and the migration is actually ready to finish, use Commit instead.
    5. After the migration state is cleared, retry the required gateway change.

    Important constraints during migration:

    • Do not modify the public IP, VPN gateway configuration, gateway subnet, or connections while the gateway is between Execute and Commit.
    • Do not enable DDoS protection or other advanced features during that phase.
    • Making changes during migration can leave the gateway in an unsupported or stuck state.

    Checks before retrying migration:

    • Ensure the GatewaySubnet has at least three available IP addresses in the current prefix.
    • If the subnet is /28 or smaller, migration can fail. In that case, add multiple prefixes to the gateway subnet before retrying.

    If the gateway entered a stuck or unrecoverable migration state because changes were made during migration, the documented worst-case recovery is to delete and recreate the gateway. Risk: this causes downtime, and if done through manual recreation the public IP address changes.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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