Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Request for help] Removing load balancer nat rule from vmss #4698
I'm trying to remove a NAT rule from a load balancer associated with VMSS.
the attempt to remove rule from NIC and update it fails with
so is there any working way to remove inbound nat pool?
You could perform similar actions as in the blog post mentioned using Azure PowerShell:
There should be items like this:
Next you need to remove InboundNatPools-related references. @hyonholee, please confirm there is no other way to remove this refs from VMSS, e.g. cmdlet.
Working on LB updates:
Results in deletion of the LB InboundNatPool.
+Adding some details on the initial message, i.e.
This is expected behavior as there is no way to delete the resource A until it is used by another resources. So first you would need to delete or update (remove references) the resource which depends on the resource A. Otherwise there would be invalid references pointing to nowhere.