I have tried all of above except escalation, yet I have solved the issue by removing the subscription.
While subscription becomes unavailable I could easily remove the subscription”zombies” via REST and restore the subscription.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am experiencing a critical Azure infrastructure issue where orphaned resources with cross-subscription references are preventing normal resource deletion operations. This is causing unnecessary costs and subscription clutter.
Error Details:
Affected Resources:
Current Subscription: 31d2dbe7-1888-40a5-a5e4-8dce676b36ec
Problem Analysis:
Attempted Solutions:
I have tried all of above except escalation, yet I have solved the issue by removing the subscription.
While subscription becomes unavailable I could easily remove the subscription”zombies” via REST and restore the subscription.
Hello @Petro Kashpurenko ,
Thank you for reaching out on Microsoft Q&A forum.
I understand that you are trying to clean up your Azure infrastructure, but you are blocked from deleting some resources. Specifically, when deleting a subnet (pixqo-aca-subnet
), Azure throws the error InUseSubnetCannotBeDeleted, claiming the subnet is still attached to a VMSS NIC that belongs to a subscription ID that no longer exists in your tenant.
This looks like a “zombie reference” — a leftover dependency from a previously deleted AKS cluster that is not visible anymore, but Azure still thinks exists. Because of this broken reference, the subnet, and by extension, the VNet and related resources, cannot be deleted, causing clutter and costs.
The reference path in the error:
/subscriptions/26feb678-d458-4c50-80a5-19592eeada53/.../aks-systempool-46606260-vmss/networkInterfaces/...
is pointing to a subscription that does not exist in your tenant, confirming this is an orphaned dependency. This can happen when AKS clusters or VMSS resources are deleted before their network bindings are fully cleaned up, leaving behind dangling records in the control plane.
Since you have already attempted CLI, REST API, and Resource Graph approaches without success, the issue cannot be resolved with normal deletion commands. These references exist in the Azure Resource Provider metadata, and manual intervention is required to detach them.
Next Steps / Workarounds
az network vnet subnet update \
--name pixqo-aca-subnet \
--resource-group pixqo-rgf7b1e3c0 \
--vnet-name pixqo-vnetba8b1520 \
--remove delegations
and also attempt removing service association links (SALs) if any exist. Reference: Azure CLI - az network vnet subnet update az network nic list --query "[?ipConfigurations[?subnet.id=='/subscriptions/<your-sub>/resourceGroups/pixqo-rgf7b1e3c0/providers/Microsoft.Network/virtualNetworks/pixqo-vnetba8b1520/subnets/pixqo-aca-subnet']]" -o table
This ensures no active NICs in your subscription are still mapped. If none are found, it’s indeed a ghost reference.Summary
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.