Azure VPN Gateway

Himanshu Dobriyal 40 Reputation points
2024-11-04T16:47:51.22+00:00

Hello Azure experts, Based on simulation, it shows that during VPN gateway creation, portal allows to create the Gateway subnet however i am getting the below error. What i did after this error that i created the Gateway subnet first and then it allows me to create the VPN gateway.

Please advise if this is something with my test subscription or there is update in the portal which is not reflecting in simulation.image.png

This question is related to the following Learning Module

Azure | Azure Training
{count} votes

1 answer

Sort by: Most helpful
  1. RDash 2,495 Reputation points Microsoft External Staff
    2024-11-05T03:44:17.65+00:00

    Hi Himanshu Dobriyal,

    We understand that the error message you're encountering when trying to create an Azure VPN Gateway indicates a conflict with existing gateways in your virtual network. Specifically, it suggests that a gateway of the same type already exists / that the current gateway does not support coexistence.

    Here are some troubleshooting steps to resolve the issue:

     1.Make sure there aren’t any existing VPN gateways in your virtual network. Azure only allows one VPN gateway of each type (Policy-based / Route-based) per virtual network. You can check this in the Azure Portal under the "Virtual Network" section.

     2.The Azure VPN Gateway needs a special Gateway Subnet. If you tried to set up the VPN Gateway without making this subnet first, that could cause the error you're seeing. It's best to create the Gateway Subnet manually before you set up the VPN Gateway. Just make sure to name the subnet "GatewaySubnet."

    3.If you think the problem might be due to your test subscription, try these steps:

    -> Check the limits on your subscription, like how many resources you can have. -> Make sure you haven’t hit your limit for VPN gateways.

    4.Recommendations:-> First, create the Gateway Subnet.   - >Delete any existing gateways that you don’t need anymore.   - >If the issue continues, try setting up the resources in another test environment.

    For more detailed guidance, you can refer to the Azure documentation on creating a VPN Gateway, which will provide the latest best practices and requirements: https://learn.microsoft.com/en-us/azure/vpn-gateway/tutorial-create-gateway-portal

    If you still facing the issue, please don't hesitate to reach out to us if you have any further queries.
    I hope the information provided has been helpful to you! If so, please accept the answer by clicking the Accept Answer / Upvote on the post. We value your feedback, and it will help to assist others who might have a similar query. Thank you for your contribution in enhancing Microsoft Q&A!


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.