VPN gateway IP change not applied

Eric Maussion 26 Reputation points
2023-07-19T14:47:42.85+00:00

I needed to change the IP configuration for my VPN gateway (running for months with several tunnels up) to a static IP- standard SKU, so I went ahead and applied my Terraform plan in steps (attach to another IP, change the SKU of the original IP, reattach to original public IP). I did not expect the SKU change to renew the public IP. So basically my VPN gateway IP went from 1.2.3.4 to 5.6.7.8

But the biggest issue here is that after 8 hours, the new IP of the gateway has not propagated: the S2S tunnels are still all up using the 1.2.3.4 IP address.

I tried:

  • Changing the public IP again
  • Resetting the VPN gateway
  • Using the new IP (5.6.7.8) from the premises to re-establish the tunnels -> it fails
  • Changing other settings (unrelated to IP, like custom routes advertised)
  • Running nslookup myvpngateway.vpn.azure.com returns 1.2.3.4

The diagnostics on the VPN gateway do no show any sign of major failures. A strange observation however:

  • Changing a setting on the VPN gateway with Terraform results in a HTTP 500 (no description) after 7-8 minutes
  • Changing a setting on the console or with Powershell takes 10 to 25 minutes and "succeeds".

These times are very long, I remember having 3-4 minutes deployments when I previously worked on this gateway (before today).

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,786 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 27,476 Reputation points Microsoft Employee Moderator
    2023-07-20T23:59:33.8766667+00:00

    @Eric Maussion

    Thank you for getting back.

    Currently VPN Gateway doesn't support changing the primary public IP address after creation this is documented here.

    Although unfavorable I think the solution here will be to create a new gateway with the desired Generation and SKU size combination and assign the already created IP address to it.

    If you wish to troubleshoot this issue further, I think it will be better if you can file for support request. Where a support engineer can have a screen share session to pinpoint the issue. If you have a support plan you may file a support ticket, else could you please send an email to azcommunity@microsoft.com with the below details.

    Subject : Attn Chaitanya

    Thread URL: Link to this thread.

    Subscription ID

    Please let me know once you have done the same. Thank you!


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.