Orphaned MySQL Flexible Server service association link (allowDelete=false) blocks VNet deletion

Grégoire Boisnard 0 Reputation points
2026-11-18T17:26:10.6533333+00:00

Hello,

I deleted an Azure Database for MySQL Flexible Server that was using private access on a delegated subnet. The server has been deleted, but its service association link (SAL) remains and prevents deletion of the virtual network and resource group.

The resource group deletion fails with:

InUseSubnetCannotBeDeleted: Subnet webcrudDbSubnet is in use by a serviceAssociationLink and cannot be deleted.

The subnet is:

  • Resource group: rg_csr_webcrud
  • VNet: webcrudVnet
  • Subnet: webcrudDbSubnet

Listing the subnet's service association links through the Microsoft.Network REST API returns:

  • Name: 56a9ad60-cf82-19c9-973c-5cf340f07d25-sal
  • Linked resource type: Microsoft.DBforMySQL/flexibleServers
  • allowDelete: false
  • Provisioning state: Succeeded

The MySQL Flexible Server has been deleted for more than 20 minutes. Removing the subnet delegation in the portal also fails: Azure reports that the subnet still needs the MySQL delegation to reference the SAL.

Is there a supported customer-side procedure to clean up this orphaned MySQL Flexible Server SAL? Or does it require backend cleanup by Microsoft? I do not have a paid Azure technical support plan. If possible, could a Microsoft moderator advise whether one-time assistance is available?

I have not tried to delete the SAL directly because allowDelete is false.

I can provide the subscription ID and the Azure deletion tracking ID privately if needed.

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.

0 comments No comments

3 answers

Sort by: Oldest
  1. Allan Solomon Mejia 11,050 Reputation points
    2026-11-18T20:09:15.8166667+00:00

    Hello @Grégoire Boisnard

    Because the MySQL Flexible Server has already been deleted and the remaining SAL reports linkedResourceType: Microsoft.DBforMySQL/flexibleServers with allowDelete: false, this appears to be an orphaned platform-managed association rather than an active subnet dependency.

    Microsoft’s documented procedure is:

    1. Verify that no resource from the linked service still uses the subnet.
    2. Wait 10–15 minutes for platform cleanup.
    3. Retry the subnet deletion.
    4. If the SAL persists, open an Azure support request and include the linkedResourceType.

    You can run this Azure CLI command to confirm all subnet dependencies:

    az network vnet subnet show \
      --resource-group rg_csr_webcrud \
      --vnet-name webcrudVnet \
      --name webcrudDbSubnet \
      --query "{delegations:delegations[].serviceName,ipConfigurations:ipConfigurations[].id,privateEndpoints:privateEndpoints[].id,serviceAssociationLinks:serviceAssociationLinks[].{name:name,linkedResourceType:linkedResourceType,allowDelete:allowDelete}}" \
      --output json
    

    If the only remaining dependency is that MySQL SAL, don’t remove the subnet delegation first; the delegation error is a consequence of the SAL still being present.

    Also, don’t attempt to delete the SAL through an undocumented REST path. The current general-purpose Virtual Network REST documentation exposes only the List operation for service association links, and allowDelete: false explicitly indicates that the resource cannot be deleted through the normal resource operation. Microsoft documents customer-side removal commands for certain services such as Azure Container Instances, but not for Microsoft.DBforMySQL/flexibleServers.

    Since the link has already remained beyond the documented cleanup interval, Microsoft backend cleanup is the supported next step. In the Azure portal, open:

    Help + support > Create a support request

    Select the affected subscription and resource, then include:

    • Subscription ID
    • Resource group, VNet, and subnet resource IDs
    • Deleted MySQL server name and resource ID
    • SAL name and complete JSON output
    • Server deletion time and tracking/correlation ID
    • The InUseSubnetCannotBeDeleted error
    • Confirmation that no MySQL Flexible Server remains in the subnet

    Keep the subscription ID and tracking information out of the public thread.

    Technical support normally requires a support plan; free subscription-management support covers billing, quota adjustments, and account transfers. The portal may still offer automated diagnostics or another applicable support path.

    A Microsoft moderator may offer a private escalation route, but that is discretionary and shouldn’t be treated as a documented entitlement.

    References:


    Help make this community better for everyone: If this answer helped or resolved your issue, please accept it or upvote it. If not, share more details in a comment so we can continue the discussion and find the right solution. Thank you.

    Was this answer helpful?

    0 comments No comments

  2. Grégoire Boisnard 0 Reputation points
    2026-11-19T07:49:39.8966667+00:00

    Thanks for clarifying. I understand that a technical support request requires a paid plan, quoted at approximately CHF 100. I’d prefer not to purchase a monthly plan solely for this issue, so I’d first like to explore any supported alternatives.

    Is there a customer-side workaround I can try, such as restoring or recreating the MySQL Flexible Server and then deleting it cleanly, or another supported cleanup procedure? I’m also open to any other reasonable steps you recommend. If backend cleanup is the only option, could a Microsoft moderator advise whether a one-time escalation is possible without a paid plan?

    The orphaned link has allowDelete: false and linkedResourceType: Microsoft.DBforMySQL/flexibleServers. It blocks deletion of subnet webcrudDbSubnet in VNet webcrudVnet (rg_csr_webcrud). I can provide the subscription ID and deletion tracking ID privately if needed.

    Was this answer helpful?

    0 comments No comments

  3. Grégoire Boisnard 0 Reputation points
    2026-11-19T07:50:25.3966667+00:00

    I accidentally posted the same question twice. Please consider one of the posts a duplicate.

    Was this answer helpful?

    0 comments No comments

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.