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!