【Service Fabric】Service Fabric删不掉的问题

问题描述

在使用Service Fabric服务后,想删除资源。却遇见无法删除的问题。在查看错误消息中,看见把中文的资源组名称转换为乱码了,十分怀疑是中文字符无法识别的原因。

日志中的资源信息: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/龦啊阿丏丄丅3狧埃挨哎唉D2繭狾㑳狵狶丒丟D㐁㐂㐀丆狪/providers/Microsoft.ServiceFabric/managedclusters/xxxx

 

问题解答

深入查看更多日志,发现原因并不是资源组乱码的问题。而是资源依赖(被删除资源被使用中)导致,在Service Fabric中使用的虚拟网络子网(Subnet)和网络安全组(NSG)资源,被其它的资源占用。

详细错误消息:

failed with exception (Retry=0, Retryable=False Elapsed=00:09:03.1420):

Microsoft.Rest.Azure.CloudException: RequestId: StatusCode: Conflict Reason: Conflict

Message: Long running operation failed with status 'Conflict'.

Body:
{
"Code": "ResourceGroupDeletionBlocked",
"Message": "Deletion of resource group 'SFC_**-*-*-*-***' failed as resources with identifiers 'Microsoft.Network/networkSecurityGroups/SF-NSG,Microsoft.Network/virtualNetworks/VNet-xxxxxxxx' could not be deleted. The provisioning state of the resource group will be rolled back. The tracking Id is '**-*-*-*-***'. Please check audit logs for more details.",
"Target": null,
"Details": [
{
"Code": null,
"Message": "{\"error\":{\"code\":\"InUseNetworkSecurityGroupCannotBeDeleted\",\"message\":\"Network security group /subscriptions/**-*-*-*-***/resourceGroups/SFC_1/providers/Microsoft.Network/networkSecurityGroups/SF-NSG cannot be deleted because it is in use by the following resources: /subscriptions/**-*-*-*-***/resourceGroups/SFC_1/providers/Microsoft.Network/virtualNetworks/VNet-xxxxxxxx/subnets/SF-Nodes. In order to delete the Network security group, remove the association with the resource(s). To learn how to do this, see aka.ms/deletensg.\",\"details\":[]}}",
"Target": "/subscriptions/**-*-*-*-***/resourceGroups/SFC_1/providers/Microsoft.Network/networkSecurityGroups/SF-NSG",
"Details": [],
"AdditionalInfo": []
},
{
"Code": null,
"Message": "{\"error\":{\"code\":\"InUseSubnetCannotBeDeleted\",\"message\":\"Subnet SF-Nodes is in use by /subscriptions/**-*-*-*-***/resourceGroups/SFC_1/providers/Microsoft.Network/networkInterfaces/test.nic.**-*-*-*-***/ipConfigurations/privateEndpointIpConfig and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet.\",\"details\":[]}}",
"Target": "/subscriptions/**-*-*-*-***/resourceGroups/SFC_1/providers/Microsoft.Network/virtualNetworks/VNet-xxxxxxxx",
"Details": [],
"AdditionalInfo": []
}
],
"AdditionalInfo": []
}

删除依赖资源后,再次删除Service Fabric成功。

 

 

[END]

 

posted @   路边两盏灯  阅读(19)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
历史上的今天:
2023-06-12 【Azure 环境】使用az login登录遇见OSError: [WinError -2146893813] : '' 错误
2021-06-12 【Azure 事件中心】 Event Grid(事件网格)+Azure Functions处理IOT Hub中的消息
2021-06-12 【Azure 应用服务】Azure Web App的服务(基于Windows 操作系统部署)在被安全漏洞扫描时发现了TCP timestamps漏洞
点击右上角即可分享
微信分享提示