I've created an inbound NAT pool in a specific load balancer. I want to add this inbound NAT pool to an existing virtual machine scale set ip configuration. How is that possible? I don't seem to find how I can edit already existing configuration.
2 Answers
The resources load balancer and the virtual machine scale set are the associated relationship. What you can do is add the virtual machine scale set into the backend pool of the load balancer, and then you can change the existing NAT rules or create new rules to associate with the instance of the existing scale set.
In addition, when you create the virtual machine scale set, there also a configuration to select the load balancer or application gateway for it, if you select load balancer, Azure will add the NAT rules for you. It shows like this:
Check out the example for "update the load balancer of your scale set" here: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set#examples. This walks through how to remove an existing load balancer from a scale set and add a new one in its place. When you update the IpConfiguration for the scale set, it should create the necessary rules for you. If you're still having trouble connecting to VMs in the scale set, check the following common issues:
- If the scale set is in "manual" update mode, then you'll need to bring all of the VMs up to date with the model (also discussed in the above doc) for the new networking changes to take effect.
- If you're using SLB Standard, you need to whitelist traffic with a network security group (with SLB Standard, by default all traffic is disallowed).
Best of luck! :)