Can't remove non-existent load-balancer from VMSS networking
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