我们如何将VM添加到现有的比例集? [英] how do we add a VM to a existing scale set?
问题描述
目前我有一个比例集(scaleset001),它是用3个节点创建的,比例集是配置为手动。
如何添加另一个节点到同一个节点此规模集(scaleset001)中的后端池(backendpool001)?
此外,如果我将手动更改为自动缩放,我是否必须创建其他节点或此服务是否自动创建并使这些节点联机?  当需求下降时,这种自动扩展是否会使节点脱机,以便有
不再节点收费?
dsk
Hello dsk,
您可以使用以下PS命令将另一个节点添加到现有的3节点缩放集。
请注意,您应该替换以下缩放集名称,resourcegroupname cmdlet在2个地方。此外,根据需要将容量设置为4
#获取当前比例集
vmss = Get-AzureRmVmss - ResourceGroupName" myResourceGroup" -VMScaleSetName" myScaleSet"
#设置和更新比例集的容量
vmss.sku.capacity = 4
Update-AzureRmVmss -ResourceGroupName" myResourceGroup" -Name" myScaleSet" -VirtualMachineScaleSet
Currently I have a scale set (scaleset001) which was created with 3 nodes and the scale set is configured as manual.
How do I add another node to the same backend pool(backendpool001) within this scale set (scaleset001)?
Also if I change manual to automatic scaling do I have to create additional nodes or does this service automatically create and bring these nodes online? When demand goes down does this automatic scaling bring nodes offline such that there are no more node charges?
dsk
Hello dsk,
You may use the following PS commands to add one more node to the existing 3 nodes scale set.
Note that, you should need to substitute the scale set name, resourcegroupname in the following cmdlet at 2 places. Also, the capacity is set to be 4 as you required
# Get current scale set
vmss = Get-AzureRmVmss -ResourceGroupName "myResourceGroup" -VMScaleSetName "myScaleSet" # Set and update the capacity of your scale set
vmss.sku.capacity = 4 Update-AzureRmVmss -ResourceGroupName "myResourceGroup" -Name "myScaleSet" -VirtualMachineScaleSet
这篇关于我们如何将VM添加到现有的比例集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!