【问题标题】:Unable to delete the Azure resource which points to another stale resource无法删除指向另一个陈旧资源的 Azure 资源
【发布时间】:2021-01-07 21:01:16
【问题描述】:

我为存储帐户创建了 Azure 专用终结点。当我删除资源组时,似乎首先删除了存储,并且私有端点仍然指向陈旧的存储帐户。我无法再删除私有端点。

即使使用强制选项,我也无法删除。

PS /home/user1> Remove-AzResource -ResourceId /subscriptions/subcription-id/resourceGroups/Testing007/providers/Microsoft.Network/privateEndpoints/pe022 -Force
Remove-AzResource: InternalServerError : An error occurred.
CorrelationId: 45bf24f4-7198-4893-9aa0-5cb527874ba7

PS /home/user1> Remove-AzPrivateEndpoint -ResourceGroupName Testing007 -Name pe022 -Force
Remove-AzPrivateEndpoint: Long running operation failed with status 'Failed'. Additional Info:'An error occurred.'
StatusCode: 200

ReasonPhrase: OK
Status: Failed
ErrorCode: InternalServerError
ErrorMessage: An error occurred.

【问题讨论】:

    标签: azure azure-resource-manager azure-private-link


    【解决方案1】:

    我无法重现您的场景,但有兴趣了解有关“内部错误”的更多信息。您能否运行Remove-AzPrivateEndpoint cmdlet 并传递-Debug?从 Azure 门户中删除它时是否看到相同的错误?

    我还发现手动清除PrivateLinkServiceConnections 属性或更新PrivateLinkServiceId 没有帮助。

    看起来过去有一个类似的 incident 已修复,但如果它是无法从命令行修复的悬空端点,恐怕只有联系支持人员才能解决。

    【讨论】:

    • 感谢巴尔加维。是的,我伸出援手。他们说这是一个已知问题并帮助我删除了资源
    • @DhamotharakannanV 哦,很高兴您的问题现在得到解决,感谢分享。请考虑upvoting and marking it as an answer,这样它也可以帮助社区中有类似问题的其他人。 :)
    猜你喜欢
    • 2018-09-13
    • 2020-11-24
    • 2022-07-12
    • 2020-12-23
    • 2022-07-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多