VirtualWANhub stuck in 'provisioning' state and I cannot delete the resource.

Reg Monsanto 5 Reputation points
2025-07-29T20:38:37.43+00:00

Trying to delete a resource.

Resource = Virtual WAN

There is a hub listed that I cannot delete.

Routing status: Provisioning

Hub Status: Failed

I get the following error:

"Failed to delete resource(s)

Failed to delete resource 'ContosoVirtualWANHub-WestUS'. Error: The specified operation 'DeleteVirtualHub' is not supported. Deletion is not supported when RoutingStatus on Hub is 'Provisioning'. Retry when state is not Provisioning."

Help docs mention restarting/resetting the hub directly from the Azure portal, but I get the following error when I try that.

"Failed to reset hub

Failed to reset hub 'ContosoVirtualWANHub-WestUS'. Error: Resource 'ContosoVirtualWANHub-WestUS' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"InfraCancellationPolicy","id":"/providers/Microsoft.Management/managementGroups/InfraCancelled/providers/Microsoft.Authorization/policyAssignments/2bdd37d166a14ade92e527c6"},"policyDefinition":{"name":"InfraCancellationPolicy","id":"/providers/Microsoft.Management/"

Azure Virtual WAN
Azure Virtual WAN
An Azure virtual networking service that provides optimized and automated branch-to-branch connectivity.
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-07-30T19:12:41.91+00:00

    Hi Reg Monsanto

    I understand that you are facing issue with the Azure Virtual WAN Hub gets stuck in the "Provisioning" state, preventing deletion.

    We request you to please check the below details to resolve the issue.

    1.You can restore the provision status using this document:

    Get-AzVirtualHub -Name "your_resource_name" -ResourceGroupName "your_resource_group_name" | Update-AzVirtualHub

    Refer: https://learn.microsoft.com/en-us/azure/networking/troubleshoot-failed-state#microsoftnetworkvirtualhubs

    2 Since the error mentions a policy restriction, we request you check with your team to disable this policy in order to reset the hub.

    3.Request a temporary exemption or removal of the InfraCancellationPolicy.


    Hope this helps you get that resource deleted!

    If the above is unclear or you are unsure about something, please add a comment below.

    If an answer has been helpful, please consider accepting the answer to help increase visibility of this question for other members of the Microsoft Q&A community. If not, please let us know what is still needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments

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.