hp2017
hp2017

Reputation: 61

Azure vmss without a load balancer

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://learn.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

Upvotes: 2

Views: 4156

Answers (4)

pers
pers

Reputation: 195

Pass empty id as a load-balancer

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

Upvotes: 1

Will Lennon
Will Lennon

Reputation: 21

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

Upvotes: 2

Neil Sant Gat
Neil Sant Gat

Reputation: 897

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 :).

Upvotes: 0

sendmarsh
sendmarsh

Reputation: 1066

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:

Upvotes: 0

Related Questions