How do I add virtual scaleset instances IP in traffic manager endponts

402 views Asked by At

I have a virtual scale set in Azure and I want to add the public IP of these instances to my traffic manager endpoint. My use case is that I want to create A record of these instances in my dns zones. I want to balance the load between these instances using round robin so that's why I have brought traffic manager to the picture. So now in my dns zone I have a record set and created a alias which points to my azure traffic manager. Now I want to add the public IP of these instances to my azure traffic manager endpoint that is whenever a new instance is added or removed it gets automatically added to my traffic manager profile. How can I do this?

1

There are 1 answers

2
Nancy On BEST ANSWER

If you mean the public IP address of the VMSS instance is like this:

enter image description here

you can not add this public IP address as the traffic manager endpoint because it is not a separate resource (public Ip resource) in the Azure portal. See supported Azure resource types for Azure endpoints.

enter image description here

The traffic manager mainly works at the DNS level, if don't consider VMSS, you can create multiple VMs with each Public IP addresses attached, then you can add these public IP address resources to the TM endpoints.

However, In my opinion, Azure Traffic Manager is better to enable you to distribute traffic optimally to services across global Azure regions. For regional service 4 layer LB, you can just use Azure load balancer to balance the load between these instances of VMSS using round-robin. You only need to associate the VMSS with a public load balancer, then you can balance these instances with LB rules and access backend instances via LB frontend public IP. Read Azure Load Balancer with Azure virtual machine scale sets for more details.