Unable To Delete Virtual Network and a Resource Group

kien.ndm 21 Reputation points
2020-11-20T09:00:49+00:00

Hi,

I have deployed an Azure system including virtual networks and app services. Then, when doing virtual network deletion, I had some problems. I got the message and the subnet uses the above vnet. Then I delete the subnet and get the message that there are app services using the above subnet. In fact, there are no app services at all. When using the command below:

As a result, I discovered that 1 [Microsoft.Network/virtualNetworks/subnets/serviceAssociationLinks] cannot be deleted.

PS: az network vnet subnet update --resource-group disabled --name snet-taskjobs --vnet-name vnet-drug --remove delegations

Subnet /subscriptions/[...]/resourceGroups/disabled/providers/Microsoft.Network/virtualNetworks/vnet-drug/subnets/snet-taskjobs requires any of the following delegation(s) [Microsoft.Web/serverFarms] to reference service association link /subscriptions/[...]/resourceGroups/Disabled/providers/Microsoft.Network/virtualNetworks/vnet-drug/subnets/[...]/serviceAssociationLinks/AppServiceLink.
PS C:\Windows\system32>

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,219 questions
0 comments No comments
{count} votes

Accepted answer
  1. suvasara-MSFT 10,016 Reputation points
    2020-11-20T12:28:29.837+00:00

    @kien.ndm , It happens when you delete the AppService first without deleting the associated app service link. Could you please drop a mail to azcommunity@microsoft.com with the following details? We will delete that from the backend.

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Kubis, Daniel 1 Reputation point
    2020-12-08T16:21:51.98+00:00

    I have the same problem no matter whether the RG with appservice is removed or i just wanted to "remove delegations" I get the same error. Are there any workarounds or possible bug fixes?

    0 comments No comments