Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update load-balancer-or-nsg-in-use-by-vm-scale-set.md #1726

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Troubleshoot the LoadBalancerInUseByVirtualMachineScaleSet or NetworkSecurityGroupInUseByVirtualMachineScaleSet error code
description: Learn how to troubleshoot the LoadBalancerInUseByVirtualMachineScaleSet or NetworkSecurityGroupInUseByVirtualMachineScaleSet error when you try to delete an Azure Kubernetes Service (AKS) cluster.
ms.date: 04/01/2022
ms.date: 11/20/2024
editor: v-jsitser
ms.reviewer: rissing, chiragpa, edneto, v-leedennis
ms.reviewer: rissing, chiragpa, edneto, jaewonpark, v-leedennis
ms.service: azure-kubernetes-service
#Customer intent: As an Azure Kubernetes user, I want to troubleshoot the LoadBalancerInUseByVirtualMachineScaleSet or NetworkSecurityGroupInUseByVirtualMachineScaleSet error code so that I can successfully delete an Azure Kubernetes Service (AKS) cluster.
ms.custom: sap:Create, Upgrade, Scale and Delete operations (cluster or nodepool)
Expand Down Expand Up @@ -44,6 +44,10 @@ You tried to delete an AKS cluster while the virtual machine scale set was still

## Solution

Remove all public IP addresses that are associated with the subnet, and remove the NSG that's used by the subnet. For more information, see [Delete the front-end IP configuration used by the virtual machine scale set](/azure/load-balancer/update-load-balancer-with-vm-scale-set#delete-the-front-end-ip-configuration-used-by-the-virtual-machine-scale-set).
To fix this issue, use one of the following methods:

- Remove all public IP addresses that are associated with Azure Load Balancer. For more information, see [View, modify settings for, or delete a public IP address](/azure/virtual-network/ip-services/virtual-network-public-ip-address#view-modify-settings-for-or-delete-a-public-ip-address).

- Dissociate the NSG that's used by the subnet. For more information, see [Associate or dissociate a network security group](/azure/virtual-network/virtual-network-network-interface#associate-or-dissociate-a-network-security-group).

[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]