針對 CannotDeleteLoadBalancerWithPrivateLinkService 或 PrivateLinkServiceWithPrivateEndpointConnectionsCannotBeDeleted 錯誤碼進行疑難解答

本文討論如何識別及解決CannotDeleteLoadBalancerWithPrivateLinkService當您嘗試刪除 Microsoft Azure Kubernetes Service (AKS) 叢集時所發生的 或 PrivateLinkServiceWithPrivateEndpointConnectionsCannotBeDeleted 錯誤。

徵狀

當您嘗試刪除 AKS 叢集時,您會收到下列其中一個錯誤訊息:

  • CannotDeleteLoadBalancerWithPrivateLinkService針對錯誤碼:

    internalErrorCode:“CannotDeleteLoadBalancerWithPrivateLinkService”

    StatusCode=BadRequest

    {

    「無法刪除負載平衡器...../providers/Microsoft.Network/loadBalancers/kubernetes-internal,因為它是由私人鏈接服務 ...../providers/Microsoft.Network/privateLinkServices/test 所參考。 請先刪除私人連結服務,再刪除負載平衡器。」

    }

  • PrivateLinkServiceWithPrivateEndpointConnectionsCannotBeDeleted針對錯誤碼:

    internalErrorCode:“PrivateLinkServiceWithPrivateEndpointConnectionsCannotBeDeleted”

    StatusCode=BadRequest

    {

    訊息:「私人鏈接服務 ...../Microsoft.Network/privateLinkServices/test 無法刪除,因為它有 1 個私人端點連線。 請先刪除所有私人端點連線,再刪除私人連結服務。」

    }

原因

無法刪除私人連結服務,因為叢集與私人端點連線相關聯。

解決方案

請確定私人連結服務未與任何私人端點連線相關聯。 刪除私人連結服務之前,請先刪除所有私人端點連線。 如需詳細資訊,請參閱 Azure:如何刪除已連線到私人端點的私人連結服務?

與我們連絡,以取得說明

如果您有問題或需要相關協助,請建立支援要求,或詢問 Azure community 支援。 您也可以將產品意見反應提交給 Azure 意應見反社群

協力廠商資訊免責聲明

本文提及的協力廠商產品是由與 Microsoft 無關的獨立廠商所製造。 Microsoft 不以默示或其他方式,提供與這些產品的效能或可靠性有關的擔保。