Azure VPN Gateway cannot be deleted!

Björn Benouarets 6 Reputation points
2021-08-17T13:20:07.617+00:00

I would like to delete my VPN gateway. But I can not get it deleted!
Supposedly the resource is still in use somewhere else.

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,461 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. GitaraniSharma-MSFT 49,401 Reputation points Microsoft Employee
    2021-08-18T15:32:30.38+00:00

    Hello @Björn Benouarets ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    Before you can delete the virtual network gateway, you must first delete any resources that are dependent on the gateway. The resource that directly depends on the VPN gateway is it's connection. So before deleting the VPN gateway, you need to delete the connection first. Below are the steps you need to follow:

    1. On the page for your virtual network gateway, click Connections to view all connections to the gateway.
    2. Click the '...' on the row of the name of the connection, then select Delete from the dropdown.
    3. Click Yes to confirm that you want to delete the connection. If you have multiple connections, delete each connection.
    4. Once all connections are deleted, you can go ahead and delete the VPN gateway.

    Please refer the below doc which shows the order of deletion for VPN gateway:
    https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-delete-vnet-gateway-portal

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------

    Please "Accept the answer" below if the information helped you. This will help us and others in the community as well.


  2. Ali Seçkin Başiplikçi 6 Reputation points
    2022-10-27T15:50:36.057+00:00

    Hi,
    I have the same problem, Can you help me? Thank you.