I cannot delete an Azure Virtual Network Gateway

Rogerio Labanca 0 Reputation points
2025-05-05T20:16:33.88+00:00

I cannot delete an Azure Virtual Network Gateway. Why?

Virtual Network Gateway

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,726 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Praveen Bandaru 3,145 Reputation points Microsoft External Staff Moderator
    2025-05-05T20:43:37.2566667+00:00

    Hello Rogerio Labanca

    I understand that you are trying to delete the VPN gateway but are unable to perform the action.

    Please check the status of your VPN gateway. If the provisioning state shows "Failed", it means something went wrong during deletion.

    To fix this, you’ll need to change the state to "Succeeded". You can try running the following Get-Set command to update the status:

    Get-AzVpnGateway -Name "your_resource_name" -ResourceGroupName "your_resource_group_name" | Update-AzVpnGateway
    
    
    

    Check the public document: https://learn.microsoft.com/en-us/azure/networking/troubleshoot-failed-state#microsoftnetworkvpngateways

    Additionally, please share a screenshot of the VPN Gateway connection and its status.

    Meanwhile, please provide screenshots of the VNET peering where this VPN Gateway is hosted.

    And also, please try to test with Power shell command and share the output with us.

    Check the public document to Delete a virtual network gateway using PowerShell


    Hope the above answer helps! Please let us know do you have any further queries.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

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.