question

AbhishekNag-8500 avatar image
0 Votes"
AbhishekNag-8500 asked AbhishekNag-8500 commented

Unable to delete vpn gateway

Failed to delete virtual network gateway 'azurevmgateway'. Error: Another operation on this or dependent resource is in progress.

azure-virtual-networkazure-vpn-gateway
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

learn2skills avatar image
0 Votes"
learn2skills answered AbhishekNag-8500 commented

Hi @AbhishekNag-8500

As you know correctly that you have to delete all the subnets shown under settings section before you are able to delete the virtual network.
You can delete all the subnets except GatewaySubnet using delete option shown under ... menu at the end of every row.

Please refer to the below link
https://stackoverflow.com/questions/23205488/cannot-delete-virtual-network-gateway-in-azure

https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-delete-vnet-gateway-portal



If the Answer is helpful, please click Accept Answer and up-vote, this can be beneficial to other community members.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Actually the issue is with vpn gateway. Once I delete the gateway, I can delete the gateway subnet, then the vnet itself. But I am not able to delete the vpn gateway. Because the status of the gateway is still
'updating'. It is kind of stuck at this status since few hours.

0 Votes 0 ·