Azure VWAN and HUB not able to remove

Kannan Vanniarajan 20 Reputation points
2026-07-15T06:40:12.4433333+00:00

Hi Team,

I am getting below error when i am trying to delete the HUB

Failed to delete resource 'mcn-vhub-hub-onprem-b2'. Error: RouteTable mcn-vhub-hub-onprem-b2/defaultRouteTable cannot be deleted because it has 1 associated and 1 propagating connections. Please first remove all associations and propagations.

I have validated it.. I dont see any Routetable at all. How do i proceed to delete it ?

Thanks,

Kannan V

Azure Virtual WAN
Azure Virtual WAN

An Azure virtual networking service that provides optimized and automated branch-to-branch connectivity.

0 comments No comments

1 answer

Sort by: Oldest
  1. Christos Panagiotidis 3,551 Reputation points
    2026-07-15T06:55:08.81+00:00

    That error is from the virtual hub’s managed defaultRouteTable, not an Azure VNet route table. One hub connection is still associated with it and propagating routes to it.

    Before deleting the hub, either remove that connection or change its hub routing configuration. You can identify the exact resource ID with:

    
    az rest --method get --url "https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/cnt/providers/Microsoft.Network/virtualHubs/mcn-vhub-hub-onprem-b2/hubRouteTables/defaultRouteTable?api-version=2025-05-01" --query "properties.{associated:associatedConnections,propagating:propagatingConnections}" -o json
    
    

    Remove or reconfigure the returned VNet, VPN, ExpressRoute, or BGP connection first, then retry the hub deletion. If the returned resource ID no longer exists, it is likely orphaned control-plane state and needs an Azure support request.

    Was this answer helpful?


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.