Error deleting firewall resource

Varsha Jain 20 Reputation points Microsoft Employee
2026-06-29T17:22:19.1966667+00:00

I am trying to delete firewall resource but I get below error: The subscription it's pointing to in the error message is something I don't have access to.

Error details

firewall-vnet-2ekoy24jbaaxi: Subnet AzureFirewallSubnet is in use ... and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet. (Code: InUseSubnetCannotBeDeleted)

Azure Firewall
Azure Firewall

An Azure network security service that is used to protect Azure Virtual Network resources.


Answer accepted by question author

Vinayteja Lellela 90 Reputation points Microsoft External Staff Moderator
2026-06-30T00:34:43.43+00:00

Hello Varsha Jain,

Thank you for the clarification.

Based on the details you’ve shared, this behavior typically indicates that the AzureFirewallSubnet is still associated with a dependent resource that exists outside your current subscription.

Even though you don’t have access to that subscription, Azure continues to treat the subnet as “in use” because it is referenced by another resource (for example, Azure Firewall, Private Endpoint, or a service integration). As a result, the platform prevents deletion of the subnet.

What this means

  • The dependency is likely cross-subscription or part of a shared networking setup.
  • The blocking resource is not visible or manageable from your subscription.
  • In some cases, this could also be due to a Service Association Link (SAL) or an orphaned backend reference created by another Azure service.

Recommended action

Since the dependent resource exists outside your scope, the issue cannot be resolved directly from your end.

You may proceed with one of the following:

Reach out to the owning team of the other subscription

  • Request them to remove or detach the resource that is using the subnet.

Azure enforces that all resources using a subnet must be removed before the subnet (and associated resources like Azure Firewall) can be deleted. When those dependencies exist in another subscription, manual cleanup is not possible from your side.


If this answers your question, feel free to click**“Upvote”**, which may help other community members facing similar scenarios.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Alex Burlachenko 23,655 Reputation points MVP Volunteer Moderator
    2026-06-30T10:51:47.9966667+00:00

    hi Varsha Jain & thx for sharing urs issue here at Q&A portal,

    That error means the firewall itself or a related resource is still attached to AzureFirewallSubnet. Azure won’t delete the subnet while anything is using it. The confusing part is the resource ID may point to another subscription, which usually means a linked/managed resource, old firewall association, route table, policy, or orphaned NIC/private IP reference is still there. Check the subnet’s connected resources

    az network vnet subnet show \

    -g <rg> \

    --vnet-name <vnet> \

    -n AzureFirewallSubnet \

    --query "ipConfigurations"

    & the firewall resource az network firewall list -g <rg> -o table

    If the subnet still shows an IP configuration from a resource in a subscription u can’t access, u’ll need someone w/ access to that subscription or Microsoft Support to remove the stale backend reference.

    So delete or detach whatever is still using AzureFirewallSubnet first. If the dependency is orphaned or in a subscription u can’t access, this needs Azure Networking support cleanup.

    rgds,

    Alex

    &

    If my answer was helpful pls mark it and additional thx if u follow me at Q&A portal

    and at my blog https://ctrlaltdel.blog/

     

    Was this answer helpful?

    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.