delete ExpressRoute VPN gateway

FPI Erick Aspiras(Erick Aspiras) 20 Reputation points
2025-11-27T06:35:21.23+00:00

Need help in deleting Express Route VPN gateway. We have decommissioned the line but I'm not sure if I can delete the VPN gateway (express route) without having to affect other resources. How can I safely do it? What I need to check to make sure that this resource is not being used?

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.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Thanmayi Godithi 2,215 Reputation points Microsoft External Staff Moderator
    2025-11-27T08:05:04.4266667+00:00

    Hi @FPI Erick Aspiras(Erick Aspiras),

    Thank you for reaching out on Microsoft Q&A forum.

    I understand you want to safely delete an ExpressRoute VPN gateway. Please follow these steps:

    1.Check for Dependencies Before deleting the gateway, confirm no active connections or dependencies exist to avoid impacting other resources. In the Azure portal, navigate to the gateway > Connections to review and delete any listed items. Alternatively, use these Azure CLI commands to verify:

    az network express-route gateway connection list --gateway-name <GatewayName> --resource-group <ResourceGroup>
    

    Make sure the connection list is empty. Reference: Azure CLI ExpressRoute Gateway Delete

    2.Delete the Gateway Once dependencies are cleared, delete the gateway with:

    az network vnet-gateway delete --name <GatewayName> --resource-group <ResourceGroup> --no-wait
    

    3.Then, remove any associated resources such as public IPs if they are no longer needed:

    az network public-ip delete --name <PublicIPName> --resource-group <ResourceGroup>
    

    4.Also, delete the GatewaySubnet from the virtual network if applicable.

    5.Verify Deletion Confirm your gateway is deleted by listing the gateways:

    az network express-route gateway list --resource-group <ResourceGroup>
    

    You should no longer see the deleted VPN gateway listed.

    Following this process will help you safely delete your ExpressRoute gateway.

    Please let us know if this helps or if you need further assistance.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.