Azure VPN Gateway cannot be Delete

Ali Seçkin Başiplikçi 1 Reputation point

I would like to delete my VPN gateway. But I can not get it deleted!

I tried this post,
I tried deleting Resource group and I tried Remove-AzResource -ResourceId "ResourceID" -Force -Verbose. It said "Failed"
I tried delete with and It said "Failed"
I havent any connection. Vpn Gateway provisioning state is "Failed"

Can you help me?
Thank you,

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

2 answers

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

    Hello @Ali Seçkin Başiplikçi ,

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

    I understand that you are unable to delete your Azure VPN gateway as it is "Failed" provisioning state.

    You are unable to delete the VPN gateway as it is in failed state. To delete it, we need to recover it first.

    I would request you to try the below provided steps:

    • Open a web browser and navigate to
    • Log-in to the appropriate Azure account
    • In the blade on the left side of the browser, expand subscriptions, then expand the desired subscription name
    • In the blade on the left side of the browser, expand resource groups
    • Under resource groups, expand the proper Resource Group Name
    • Under the Resource Group, expand providers
    • Under providers, expand Microsoft.Network
    • Under Microsoft.Network, expand virtualNetworkGateways, select the affected VPN gateway from the list.
    • Near the top of the content window of the browser, select the Read/Write push button
    • Select the Data(GET,PUT) tab and click on GET.
    • Then click on Edit but do not make any changes.
    • Finally click on PUT.
    • This should help the VPN gateway to recover from the failed state.
    • Once the VPN gateway's provisioning state is back to "Success", you can try deleting it from the portal.

    If it doesn't help and the gateway still shows as Failed:

    • Select the Actions(POST, DELETE) tab on the VPN gateway within the resource explorer( and click on Delete.
    • And confirm if the gateway is deleted.

    If you are unable to recover/delete the gateway, we would need to open a support case to get it removed from the backend. So, if you have a support plan, I request you file a support ticket, else please do let us know, we will try and help you get a one-time free technical support.

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


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

  2. Maxwell Oliveira 0 Reputation points


    I am also having the same problem, and even trying to perform the procedures on I was unsuccessful.

    In this case, I will open a ticket at Microsoft for analysis, as this is being charged to my subscription.

    0 comments No comments