2
votes

My requirement is to scale vm instance (linux based custom image) based on CPU usage. Tried to follow steps mentioned in VMSS (virtual machine scale sets : https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-linux-autoscale), but it creates a LB in front which we don't want. Is it possible to avoid LB in vmss ?

If VMSS without LB is not the option, is there any other way in azure to do this ? I am able to achieve this in AWS (using autoscale group) and GCP (instance group), so trying to get similar functionality in Azure.

hp

4
Do you mean you don't want LB with a public IP? - Jason Ye
I don't want LB at all. but want public IP for all instances in set. - hp2017
if you don't want to add LB, we can use classic module, create VMs in cloud service, and setting scale, azure will create a built-in LB for those VMs. - Jason Ye

4 Answers

0
votes

Though a load balancer is created when you create a VM scale set in the portal, other modes supporting external connectivity to scale sets include:

0
votes

Public IP per VM in a scale set is not supported today but is on the roadmap. If you submit a support request (e.g. from the question mark in the top-right of the azure portal), we can keep you informed on the timeline :).

0
votes

Pass empty id as a load-balancer

az vmss -n myname -g mygroup --load-balancer '' --public-ip-per-vm --image UbuntuLTS

0
votes

In powershell to make this work you need to provide both double quotes wrapped in single quotes: --load-balancer '""'

az vmss -n myName -g myGroup --load-balancer '""' --image UbuntuLTS