Site-to-Site VPN not working with same settings after redeploying from template from subscription to subscription

Jesse Page 25 Reputation points
2025-04-23T22:14:55.2333333+00:00

One of our subscriptions was orphaned because the admin was a Classic Owner instead of an RBAC owner, and when the admin left, the subscription was not transferred to a current admin.

My team and I were unable to use the Move function for a resource group containing a webapp and the associated virtual network and site-to-site VPN.

I was able to create a template of the resource group, and redeployed to the new subscription based on this template. Everything seemed to deploy fine.

However, the VPN tunnel was originally complaining that the subnet was already in use, so I increased the second octet by one and created a new subnet for the VPN, and then updated the associated Virtual Network Integrations in the AppServices to point to the new subnet and gateway.

Now, the virtual network is not passing any traffic. Is there something I need to update to have the webapp AppServices retry the VPN site-to-site connection?

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,720 questions
{count} votes

Accepted answer
  1. G Sree Vidya 825 Reputation points Microsoft External Staff
    2025-04-24T04:58:49.2066667+00:00

    Hi @Jesse Page

    We understand that you are experiencing site-to-site VPN connectivity issues after redeployment and changes. We request you to validate the following details:

    1. Verify VPN Gateway Configuration Settings:
      • Ensure that the VPN gateway in the new virtual network is correctly configured with the same settings as the original (e.g., gateway type, VPN type, public IP, local network gateway, and connection settings).
      • Confirm that the local network gateway (representing the on-premises network) has the correct IP address ranges and VPN device public IP. If these differ from the original setup, update them.
      • In the Azure portal, navigate to the VPN gateway > Connections, and check if the site-to-site connection is in a "Connected" state. If not, troubleshoot using Azure's diagnostic tools or logs.http://learn.microsoft.com/en-us/azure/vpn-gateway/troubleshoot-vpn-with-azure-diagnostics
      • Check the subnet address space of the virtual network and the new subnet to ensure they are correctly configured.
      • Confirm that the routing configuration between your on-premises network and Azure is still correct, especially if you've made changes during the redeployment.
      • Verify that the pre-shared key for the VPN connection matches on both the Azure VPN gateway and the on-premises VPN device.
    2. Validate Virtual Network Integration:

    For further troubleshooting, you can refer to the following guides:

    Refer: http://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-troubleshoot-site-to-site-cannot-connect

    http://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-troubleshoot-site-to-site-disconnected-intermittently

    After validating the above points, we suggest resetting the VPN gateway:

    1. In the portal, go to the virtual network gateway that you want to reset.
    2. On the Virtual Network Gateway page, in the left pane, scroll and locate Help -> Reset.
    3. On the Reset page, select Reset. After the command is issued, the current active instance of the Azure VPN gateway will reboot immediately.

    Please let me know if the above steps are helpful. If not, kindly provide the error details along with a screenshot for further investigation. We will be happy to assist you.

    If an answer has been helpful, please consider accepting the answer to help increase visibility of this question for other members of the Microsoft Q&A community. If not, please let us know what is still needed in the comments so the question can be answered.

    Thank you for helping to improve Microsoft Q&A!

    User's image

    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.