本文介绍了无法删除子网的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试删除虚拟网络中的子网,但是即使我没有放置任何对象,也会收到一条错误消息,指出该子网正在使用中.

I am trying to delete a subnet in my virtual network but get an error saying that it is in use, even though i have no objects located within.

无法删除子网"AzureDemoSubnet".错误:子网AzureDemoSubnet正在被使用,无法删除.

Failed to delete subnet 'AzureDemoSubnet'. Error: Subnet AzureDemoSubnet is in use by and cannot be deleted.

没有服务端点,尽管我确实看到在我的CIDR块中创建的256个地址中只有251个可用.

There are no service endpoints, though I do see that of the 256 addresses created in my CIDR block, only 251 are available.

我正在跟着这篇文章一起创建容器,并且在创建容器之前已经创建了VNET和子网.

I was following along with this post to create the containers, and had created the VNET and Subnet prior to doing so.

https://dbafromthecold.com/2018/10/04/running-a-sql-server-azure-container-instance-in-a-virtual-network/

https://dbafromthecold.com/2018/10/04/running-a-sql-server-azure-container-instance-in-a-virtual-network/

玩完之后,我尝试清理环境,但是在删除容器后无法删除子网.

Once I was done playing around, I tried to clean up the environment but couldn't delete the subnet after the containers were deleted.

在那篇博客文章之后,我注意到作者提到删除子网存在问题,并提供了可以帮助脚本的链接,但是遵循这些步骤仍然没有提供解决方案.

Following on from that blog post, I noticed that the author mentioned that there was a problem with deleting subnets and provided a link to a script that could help, but following those steps still provided no solution.

https://gist.github.com/dbafromthecold/21d3939a7cc23cbe2e6a1b05e30d2689

https://gist.github.com/dbafromthecold/21d3939a7cc23cbe2e6a1b05e30d2689

在此行失败:

az资源删除--ids $ SAL_ID --api-version 2018-07-01

az resource delete --ids $SAL_ID --api-version 2018-07-01

我也尝试了这种方法,但无济于事:

I also tried this method to no avail:

https://docs.microsoft.com/zh-cn/rest/api/container-instances/serviceassociationlink/delete

https://docs.microsoft.com/en-us/rest/api/container-instances/serviceassociationlink/delete

有什么建议吗?

推荐答案

{ "error": { "code": "NoRegisteredProviderFound", "message": "No registered resource provider found for location 'eastus' and API version '2018-10-01' for type 'serviceAssociationLinks'. The supported api-versions are '2018-07-01, 2018-09-01, 2018-10-01'. The supported locations are 'westus, westeurope, northeurope'." } }

然后,我尝试将VNET移至美国西部地区新创建的资源组,但还是没有运气.

I then tried moving the VNET to a newly created resource group in the West US region but still no luck.


这篇关于无法删除子网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-26 21:24