Share via

I cannot delete virtual network gateway

OluM 0 Reputation points
2025-09-27T00:52:19.4533333+00:00

vng

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 answer

Sort by: Most helpful
  1. Ravi Varma Mudduluru 12,370 Reputation points Microsoft External Staff Moderator
    2025-09-29T17:33:44.1166667+00:00

    Hello @OluM,

    Thanks for reaching out to Microsoft Q&A. 

    I understand that you're having trouble deleting your Virtual Network Gateway, especially with the migration status failing and no locks on it.

    • Please review the dependencies and confirm that there are no VPN connections, application gateways, or other resources still connected to your gateway. You can check this in the Azure portal by going to the "Overview" page of your virtual network and viewing the connected devices section. Remove any connections as needed before proceeding.
    • Please double-check the steps in the document below and ensure you followed the same process when attempting to delete the VPN gateway from the portal.
    • If you are familiar with PowerShell tools, you could try deleting the gateway using Azure PowerShell. Begin by removing any connections linked to the gateway. You can refer to the document below for guidance.

    Reference document: https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-delete-vnet-gateway-powershell

    You have the option in the document to switch from PowerShell to the portal to verify the steps.
    User's image

    • If you haven’t already, run the Azure diagnostics to check for connected resources that might be causing this issue. This troubleshooting can give you insights into what's still associated with your gateway.

    If it does not succeed and you receive an error, please share the error details and the screenshot of the error message for further investigation.

    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.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.