Unable to delete virtual network with "Internal Server Error" and troubleshooting loop.
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:
- 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.
- 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..