Can't remove non-existent load-balancer from VMSS networking

Christiaan Westgeest 6 Reputation points
2020-01-16T15:01:51.823+00:00

I have a VMSS that still lists a loadbalancer/Backend pool under 'Networking' > 'Load balancing' that actually no longer exists.
The presence of this entry is preventing me from updating/restarting the VMs, since they will always throw the error:

Failed to upgrade virtual machine instances aks-elastic-29012786-vmss_1, aks-elastic-29012786-vmss_0. Error: Resource {masked-for-privacy}/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/Elastic'>kubernetes/Elastic referenced by resource /subscriptions/82573a0e-1f6b-4de3-b3ed-07e4979c4e38/resourceGroups/{masked-for-privacy]/providers/Microsoft.Compute/virtualMachineScaleSets/aks-elastic-29012786-vmss was not found. Please make sure that the referenced resource exists, and that both resources are in the same region.

I cannot remove the faulty entry from the Azure UI, so I tried it via the CLI using

az vmss update --name aks-elastic-29012786-vmss -g {masked-for-privacy} --remove virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0].ipConfigurations[0].loadBalancerBackendAddressPools 0

However, this throws a similar error:

Resource /subscriptions/82573a0e-1f6b-4de3-b3ed-07e4979c4e38/resourceGroups/{masked-for-privacy}/providers/Microsoft.Network/loadBalancers/kubernetes/backendAddressPools/Elastic referenced by resource /subscriptions/82573a0e-1f6b-4de3-b3ed-07e4979c4e38/resourceGroups/{masked-for-privacy}/providers/Microsoft.Compute/virtualMachineScaleSets/aks-elastic-29012786-vmss was not found. Please make sure that the referenced resource exists, and that both resources are in the same region.

In effect, I cannot update/restart my VMs because of a resource that does not exist, and I cannot remove the resource because it does not exist.

Does anyone have any idea how to get around this?

Kind regards,
Chris

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,171 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
348 questions
{count} votes