An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
Welcome to Microsoft Q&A
Hello @Matt Wehrman I hope you are doing well.
This can happen if a previous gateway operation (creation, update, connection removal, or deletion) did not complete successfully, leaving the resource in an inconsistent state.
Please check the following:
- Verify that all dependent resources have been removed, including Local Network Gateways, Gateway Connections, and that the GatewaySubnet no longer contains any resources associated with the gateway.
- Confirm there are no active resource locks (
CanNotDeleteorReadOnly) on the gateway or its resource group. - Review the Activity Log for the failed delete operation and check for a more detailed inner error or correlation ID.
References
- Delete a Virtual Network Gateway: https://learn.microsoft.com/azure/vpn-gateway/vpn-gateway-delete-vnet-gateway-portal
- Troubleshoot Azure VPN Gateway: https://learn.microsoft.com/azure/vpn-gateway/vpn-gateway-troubleshoot
If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily.