Failed to delete virtual network gateway 'azurevmgateway'. Error: Another operation on this or dependent resource is in progress.
Failed to delete virtual network gateway 'azurevmgateway'. Error: Another operation on this or dependent resource is in progress.
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.
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.
6 people are following this question.