Summary
Resource group XXXXXXXXX cannot be deleted because subnet web on vXXXXXX has an orphaned
serviceAssociationLink/AppServiceLink that references a long-deleted App Service Plan (XXXX-cwydbe6ld). The vnet/subnet
cannot be deleted while the SAL exists, and the SAL has allowDelete: false and no live owning resource to clean it up.
Environment
FieldValueSubscription IDXXXXXXXXXXXXXXXXXXXXXXXXSubscription nameCSA-CTO-Engineering-MaintenanceResource groupXXXXXXXXXXRegionXXXXXXXXVNetXXXXXXXXAffected subnetXXXXXXwebOrphaned SALAppServiceLink → Microsoft.Web/serverfarms (ASP no longer exists)Original delete tracking IDXXXXXXXXX ## Original error (from az group delete)
Subnet web is in use by /subscriptions/.../virtualNetworks/vnet-cwydbe6ld/subnets/web/serviceAssociationLinks/AppServiceLink and
cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. (Code: InUseSubnetCannotBeDeleted)
Current SAL state
{
"name": "AppServiceLink",
"properties": {
"linkedResourceType": "Microsoft.Web/serverfarms",
"allowDelete": false,
"provisioningState": "Succeeded"
}
}
Workarounds already attempted (all failed)
┌───┬──────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────┐
│ # │ Workaround │ Result │
├───┼──────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ 1 │ Detached and deleted the 3 blocking NSGs │ ✅ Succeeded — NSGs gone, SAL still blocks vnet │
├───┼──────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ 2 │ Recreated ASP asp-cwydbe6ld with same name + integrated + │ ❌ New SAL created instead of adopting the orphan │
│ │ disconnected │ │
├───┼──────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ 3 │ POST .../deleteVirtualNetworkOrSubnets on recreated ASP │ ❌ Only cleans SALs of currently-tracked ASPs │
├───┼──────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ 4 │ Direct DELETE on SAL via ARM REST │ ❌ UnauthorizedClientApplication │
├───┼──────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ 5 │ Subnet PATCH removing the SAL property │ ❌ SALs are read-only via PATCH │
├───┼──────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ 6 │ Remove subnet delegation Microsoft.Web/serverFarms │ ❌ SubnetMissingRequiredDelegation │
│ │ │ (chicken-and-egg) │
├───┼──────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ 7 │ Check/clear network profiles │ ❌ No network profiles exist │
├───┼──────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ 8 │ az resource delete with API 2022-05-01 on the SAL │ ❌ Failed silently, SAL still present │
├───┼──────────────────────────────────────────────────────────────────────┼────────────────────────────────────────────────────┤
│ 9 │ Wait + retry az group delete │ ❌ Goes to Deleting ~5 min, then rolls back │
└───┴──────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────┘
Followed guidance from this Q&A thread and this one — neither resolved it.
Why a support ticket wasn't filed
The subscription's support plan is Internal, which rejects technical tickets at Severity B/C with InvalidSupportPlan. The Azure
Portal "New Support Request" flow redirects here (Microsoft Q&A — Priority Community Support).
Ask
Need backend assistance to force-remove the orphaned AppServiceLink SAL on subnet web so the vnet and resource group can be
deleted. Happy to provide any additional logs / correlation IDs.
Contact
- Name: Rafi MD
- Email: XXXXXXXXXXXXX
- Phone: XXXXXXXXXXXX
- Country: XXXXXXXXX
- Timezone: India Standard Time
- Preferred language: English
edited pii