This issue is caused by a tenant-mismatch authentication token combined with an orphaned (managed) Load Balancer. Such load balancers are often created automatically by services like Virtual Network Gateway or Private Endpoint. Even if the load balancer does not appear in the Azure Portal, it can still exist in ARM and block VNET deletion.
1.Re-authenticate to the correct tenant
If the subscription was moved to another tenant, you must explicitly sign in to that tenant.
az logout
az login --tenant <tenant-id>
az account set --subscription <subscription-id>
- Azure CLI authentication: https://learn.microsoft.com/cli/azure/authenticate-azure-cli
- Set active subscription: https://learn.microsoft.com/cli/azure/account#az-account-set
2.List and delete the blocking Load Balancer
Managed/orphaned load balancers may only be visible via CLI or ARM.
az network lb list --resource-group <resource-group-name>
az network lb delete -g MyResourceGroup -n MyLb
-
az network lb list: https://learn.microsoft.com/cli/azure/network/lb#az-network-lb-list -
az network lb delete: https://learn.microsoft.com/cli/azure/network/lb#az-network-lb-delete
3.Delete the VNET
After the blocking resources are removed, delete the virtual network.
az network vnet delete --resource-group myResourceGroup --name myVNet
- Manage / delete virtual networks: https://learn.microsoft.com/azure/virtual-network/manage-virtual-network
After a tenant transfer, Azure backend reconciliation can take up to ~1 hour.
If the above steps didn't help, let us know to assist you further.
If the answer is helpful, please "Accept the answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".