An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
As an MSDN subscription holder Im now allowed to open a support ticket and escalate. How do I proceed?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This guidance is not applicable. The blocking resource is NOT in our subscription and cannot be accessed or deleted. Evidence: - Subnet shows serviceAssociationLink "legionservicelink" - linkedResourceType = Microsoft.App/environments - allowDelete = false Blocking resource: - /subscriptions/fca8eXXX-60XX-46XX-8eXX-d09bd34a1XXX/resourceGroups/hoboXX_8020f3XX-95b4-4dXX-9fXX-2134e0875XXX/providers/Microsoft.App/managedEnvironments/i020f33095b44d859f582134e0875XXX Observed behavior: - No Microsoft.App/managedEnvironments exist in our subscription - Cannot enumerate or access the above subscription - az containerapp env create fails with ManagedEnvironmentSubnetInUse Conclusion: This is a cross-subscription dependency created by the Microsoft.App resource provider. Request: Please escalate to backend engineering to: - Detach the managedEnvironment from the subnet, OR - Remove the serviceAssociationLink (legionservicelink) This cannot be resolved from the tenant side.- HOW do I delete this resource???
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
As an MSDN subscription holder Im now allowed to open a support ticket and escalate. How do I proceed?
az network vnet subnet show --resource-group rg-dev-EntAIAXXX-euXX-XX --vnet-name vnet-dXX-euXX-XX --name snet-dev-pXX-svc-euXX-XX --query "serviceAssociationLinks[].{name:name, link:link, type:linkedResourceType, allowDelete:allowDelete}" --output table
Name Link AllowDelete
legionservicelink /subscriptions/4b9403e5-43ae-4551-b028-8c21441b4XXX/resourcegroups/rg-dXX-entaiapXX-euXX-XX/virtualnetworks/vnet-dev-eus2-01/subnets/snXX-dev-pvt-sXX-eus2-XX False
C:\Users\ekimminau\OneDrive\Apex-Code\GitHub> az network vnet subnet show --resource-group rg-dev-EntAIApXX-euXX-XX --vnet-name vnet-dev-eus2-01 --name snet-dev-pvt-svc-eus2-02 --query "serviceAssociationLinks[].{link:link, linkedResourceType:linkedResourceType}" --output table
Link LinkedResourceType
/subscriptions/4b940XXX-4XXX-45XX-b0XX-8c21441b4XXX/resourcegroups/rg-dev-entaiaXXX-eXXX-01/virtualnetworks/vnet-dXX-eus2-XX/subnets/snet-dXX-pvt-sXX-eus2-XX Microsoft.App/environments
We have confirmed this is not a normal subnet dependency.
Evidence:
/subscriptions/fca8eXXX-60XX-46XX-8e17-d09bd34a1XXX/resourceGroups/hobov3_8020f330-95XX-4dXX-9f58-2134e0875XXX/providers/Microsoft.App/managedEnvironments/i020f33095b44d859f582134e0875XXX
Facts:
Request:
Please route to the Microsoft.App / Azure networking backend team for manual removal of the serviceAssociationLink or detachment of the managed environment.
``
AI answer
The subnet and VNet can't be deleted because of a blocking service association link (SAL) of type Microsoft.App/environments with allowDelete = false. This is exactly the kind of cross-service dependency described for subnet deletion failures.
From the tenant side, the only supported actions are:
linkedResourceType:
az network vnet subnet show \
--resource-group <resource-group> \
--vnet-name <vnet-name> \
--name <subnet-name> \
--query "serviceAssociationLinks[].{link:link, linkedResourceType:linkedResourceType}" \
--output table
This will show the serviceAssociationLinks and the linkedResourceType (in this case Microsoft.App/environments).Microsoft.App/managedEnvironments resource is in another subscription that can't be accessed, this step can't be completed from the current subscription.linkedResourceType and SAL details When service association links persist and can't be cleared by deleting the owning resources, the documented next step is to open an Azure support request and reference the specific linkedResourceType:
serviceAssociationLink name (for example, legionservicelink).linkedResourceType (Microsoft.App/environments).Microsoft.App managed environment from the subnet.allowDelete = false is not something that can be performed from the tenant; it must be handled by Azure engineering via the support channel.If other blocking resources are present (NICs, private endpoints, delegations, Bastion/Firewall, etc.), they must also be removed as described in the subnet/VNet deletion guidance before the VNet can be deleted.
References: