An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
What you’re seeing is a service-managed Service Association Link, not a normal delegation that can be removed independently. The allowDelete: false flag means do not try to delete legionservicelink directly or force a subnet update; the link must be released by the owning Microsoft.App/environments resource provider.
First, verify at subscription scope, including other resource groups, that no Container Apps managed environment remains. Inspect the subnet’s serviceAssociationLinks, delegations, ipConfigurations, and privateEndpoints as well. If nothing remains, wait 10–15 minutes after the deletion and retry deleting the subnet—platform cleanup is asynchronous. Only after the link is gone should you remove the delegation or delete the subnet.
Because yours still references Microsoft.App/environments but the environment is gone, treat it as orphaned if it persists. Open an Azure support request with the full subnet resource ID, legionservicelink details, resource-list output, and exact errors. Ask for provider-side cleanup of the orphaned SAL.