Share via

Cannot delete VNet — subnet blocked by orphaned App Service serviceAssociationLink

Aditya Sinha 25 Reputation points Microsoft Employee
2026-06-10T00:07:31.2133333+00:00

I'm trying to delete a virtual network, but it fails with:
InUseSubnetCannotBeDeleted: Subnet <subnet> is in use by .../serviceAssociationLinks/AppServiceLink and cannot be deleted.

The subnet was previously used for App Service / Function App regional VNet integration. The app has since been re-integrated with a different VNet, so nothing actively uses this subnet anymore. However, an orphaned serviceAssociationLink (AppServiceLink, owned by Microsoft.Web, with allowDelete: false) remains on the subnet and blocks deletion.

What I've already tried (all fail):

  1. Delete the whole VNetInUseSubnetCannotBeDeleted (subnet in use by AppServiceLink).
  2. Delete the subnet → same InUseSubnetCannotBeDeleted error.
  3. Remove the subnet delegation (Microsoft.Web/serverFarms) → SubnetMissingRequiredDelegation, because the SAL requires the delegation to exist (circular lock — delegation can't go while the SAL is present).
  4. az webapp vnet-integration add then remove (point the app at the stale subnet, then disconnect) → App Service reuses the existing orphaned SAL rather than tearing it down (etag never changes), so it persists.

Questions:

Is there any supported customer-side way to remove an orphaned Microsoft.Web serviceAssociationLink (or flip allowDelete to true)?

If not, is a support request to the App Service team the only path to clear this stuck SAL?

Any guidance appreciated.

Azure Virtual Network
Azure Virtual Network

An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.


Answer accepted by question author

Praneeth Maddali 10,705 Reputation points Microsoft External Staff Moderator
2026-06-10T00:50:53.04+00:00

Hi @Aditya Sinha

Thank you for sharing the requested details over the Teams message.

The orphaned ServiceAreaLink has been successfully removed from the backend. We also appreciate your confirmation over Teams that the issue is now resolved.

Please feel free to reach out if you have any further queries—we’re happy to assist.

If you found this helpful, kindly click on “Accept the answer” and select “Yes”, as this can benefit other community members facing similar issues.

If you have any additional questions, feel free to post them in the “Comments” section, and I’ll be glad to help.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most 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.