Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
To remove the orphaned Service Association Link (SAL) from the subnet, you can follow these steps:
- Purge the orphaned Service Association Link: Use the Azure CLI command to delete the orphan SAL. Replace the placeholders for
SUBSCRIPTION-ID,LOCATION, andSUBNET-RESOURCE-IDwith your specific details:
If successful, you should receive a response indicating that the unused virtual network integration has been purged.az rest --method POST \ --uri "/subscriptions/<SUBSCRIPTION-ID>/providers/Microsoft.Web/locations/<LOCATION>/purgeUnusedVirtualNetworkIntegration?api-version=2024-04-01" \ --body "{'subnetResourceId': '<SUBNET-RESOURCE-ID>'}" - Re-create and disconnect the integration: If the purge command does not resolve the issue, you may need to re-create the virtual network integration and then disconnect it:
- Re-create the App Service plan and app using the same web app name as before.
- Navigate to Networking on the app in the Azure portal and configure the virtual network integration.
- After configuring, select the 'Disconnect' button.
- Delete the App Service plan or app.
- Update or delete the subnet or virtual network as needed.
If you still encounter issues after these steps, consider contacting Microsoft Support for further assistance.