Unable to delete subnet delegate to Microsoft.DBforMySQL/flexibleServers

Mykhailo Vasylchenko 0 Reputation points
2024-09-18T14:01:28.27+00:00

I have a subnet delegated to Microsoft.DBforMySQL/flexibleServers. I integrate MySql flexible server to that subnet, for test purpose. Now I delete MySQL server and I want to delete subnet as well, but azure does not allow me to do this. Please help me with problem.
The error:

Failed to delete subnet 'snet-bff-mysql'. Error: Subnet snet-bff-mysql is in use by rg-vnets-dev-we/providers/Microsoft.Network/virtualNetworks/VNET-SPK-D03/subnets/snet-bff-mysql/serviceAssociationLinks/2f92f3ac-eb85-f7ec-eca2-5f5320bde0c1-sal'>VNET-SPK-D03/snet-bff-mysql/2f92f3ac-eb85-f7ec-eca2-5f5320bde0c1-sal and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet. 
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.
2,464 questions
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
831 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rohith Vinnakota 600 Reputation points Microsoft Vendor
    2024-09-19T00:35:01.1033333+00:00

    Hi  Mykhailo Vasylchenko,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    Please go through this link ChaitanyaNaykodi-MSFT gave the solution for that issue: https://zcusa.951200.xyz/en-us/answers/questions/1463184/unable-to-delete-azure-virtual-network

    If you have any further concerns, please do not hesitate to contact us.

    We are pleased to help you.

    Thanks,

    Rohith

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.