Unable to delete virtual network with "Internal Server Error" and troubleshooting loop.

Chris Gouge 0 Reputation points Microsoft Employee
2025-10-31T14:58:26.6733333+00:00

We have two vNets in this situation, both in EastUS, across two different subscriptions. Other regions and other subscriptions have had no problems deleting resources.

There are no resources listed in either vNet, and we have gone through the "view hidden resources" steps as well.

Troubleshooter always says one or both of:

  1. the resource is out of sync with the resource provider. we've fixed it, try again in 20 minutes.  But it never actually fixes it. Hours later, same errors happen.
  2. The resource is in a failed state. Run "Get-AzVirtualNetwork -ResourceGroupName XXXX -Name DCat-XXXX | Set-AzVirtualNetwork" Running that command as instructed just gives an error:  

    Set-AzVirtualNetwork: Virtual Network DCat-PPE-Shared-EastUS-vNet can not be updated when deletion was attempted earlier. StatusCode: 400 ReasonPhrase: Bad Request ErrorCode: VnetCannotGetUpdatedWhenDeletionWasAttemptedEarlier ErrorMessage: Virtual Network XXXX can not be updated when deletion was attempted earlier. OperationID : XXXX

How can I fix this error? I've been through all of the "can't delete vNet" troubleshooting steps with no luck..

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
{count} votes

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.