Azure VPN Gateway cannot be deleted!

Björn Benouarets 6 Reputation points

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

2 answers

Sort by: Most helpful
  1. GitaraniSharma-MSFT 48,096 Reputation points Microsoft Employee

    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:

    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 1 Reputation point

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