Share via

Error when upgrading Virtual Network Gateway's public IP from Basic SKU to Standard

Matthew Lam 40 Reputation points
2025-09-13T08:25:30.84+00:00

Hi,

Basic Public IP is retiring in Sep 2025, so I tried to upgrade our Basic Public IPs. One of them belongs to a Virtual Network Gatway, so I tried to follow https://learn.microsoft.com/en-gb/azure/vpn-gateway/basic-public-ip-migrate-howto?tabs=portal#migrate to upgrade the Public IP in Azure Portal. The validation is shown as passed, so I pressed the 'Prepare' button to start the migration. However, the migration is aborted and there is no concrete error message explaining what went wrong. I tried 'Prepare' and 'Abort' for few more times and it did not work. I also checked that the gateway subnet is already '/27' as suggested in the documentation. I also tried running via PowerShell.

$ Invoke-AzVirtualNetworkGatewayPrepareMigration -InputObject $gateway -MigrationParameter $migrationParams
Invoke-AzVirtualNetworkGatewayPrepareMigration: Current Virtual network gateway migration state is Abort, it can not continue with migration state:Prepare
StatusCode: 400
ReasonPhrase:
ErrorCode: CannotContinueMigrateGatewayWithIncorrectState
ErrorMessage: Current Virtual network gateway migration state is Abort, it can not continue with migration state:Prepare
OperationID : 

$ Invoke-AzVirtualNetworkGatewayAbortMigration -InputObject $gateway
Invoke-AzVirtualNetworkGatewayAbortMigration: Long running operation failed with status 'Failed'. Additional Info:'An error occurred.'
StatusCode: 200
ReasonPhrase:
Status: Failed
ErrorCode: InternalServerError
ErrorMessage: An error occurred.

How can I deal with it?

The Virtual Network Gateway

  • SKU: Standard
  • Gateway type: VPN
  • VPN type: Route-based
  • Public IP SKU: Basic

Thank you!

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.

0 comments No comments

Answer accepted by question author

TP 157.5K Reputation points Volunteer Moderator
2025-09-13T13:49:30.8666667+00:00

Hi,

According to current timeline documentation there is no action needed. Your Standard SKU VPN Gateway will be automatically migrated before September 30, 2025 with no downtime expected.

Please see excerpt from documentation below:

Migrate a gateway SKU Your legacy gateway will be migrated seamlessly from backend without any connectivity impact before September 30, 2025. This is different from the initial approach of providing a migration path.

Excerpt from timeline below:

Event Customer impact Anticipated timelines Customer action/Prerequisites Documentation Announcement links
Gateway SKU retirement: Standard and High Performance SKUs. - New Standard/High Perf SKU gateway creations blocked Nov 2023. - Standard/High Perf SKU gateways will be migrated to VpnGw1/VpnGw2 on non-AZ regions and to VpnGw1AZ/VpnAz2 on AZ regions. - No downtime is expected for migration. - May 2025 to Sep 2025: Standard/HighPerf SKU migration. - Sep 2025: Standard/HighPerf SKU retirement. - No action required Working with VPN Gateway legacy SKUs Standard and HighPerf gateway SKU retirement

After automatic migration please verify the IP SKU. The deadline for Basic SKU Public IP when used with VPN Gateway is end of January 2026, so if for some reason IP SKU isn't updated immediately there is still plenty of time.

Please click Accept Answer and upvote if the above was helpful.

Thanks.

-TP

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. Anonymous
    2025-09-15T09:10:23.9466667+00:00

    Hi Matthew Lam,

    Thank you for your follow-up question.

    Microsoft’s current official guidance confirms that Standard and High-Performance VPN Gateway SKUs will be migrated automatically by Azure before September 30, 2025, with no expected downtime. This migration covers the VPN Gateway SKU itself but does not automatically upgrade the associated Basic Public IP resources.

    Regarding the Basic Public IP SKU, the retirement timeline is slightly different. The Basic Public IP SKU will be retired by end of January 2026 when used with VPN Gateways. This means:

    • Your VPN Gateway SKU migration happens automatically first (by September 2025).
    • The Basic Public IP SKU used by the VPN Gateway will not be automatically upgraded at that time.
    • You need to take action to upgrade or recreate the Public IP to a Standard SKU before January 31, 2026, to avoid impact.

    This staggered timeline allows customers extra time to properly plan and execute the Public IP SKU upgrade after VPN Gateway migration completes seamlessly.

    For your case, since you have not been able to manually prepare the migration through PowerShell or portal, rest assured the VPN Gateway migration will still occur automatically. For the Public IP, plan the manual upgrade/recreation to Standard SKU before the January 2026 deadline.

    Please refer to these official Microsoft links for detailed timelines and instructions:

    I hope this clarifies the sequence and responsibilities between VPN Gateway and Public IP SKU migrations. If this answers your query, please click Accept Answer and Upvote for was this answer helpful.

    Thanks,

    Harish.

    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.