SOLVED

Check VMSS Scale Mode via PowerShell

Copper Contributor

Hello:

 

Can someone please suggest how I can check the scale mode in my VMSS (Virtual machine scale set) via Powershell?

 

Ideally, I want to see if it's manual or auto and number of max Instances...

 

Thank you!

6 Replies

@Oleg_A 

 

Try this:

 

Get-AzVmss -ResourceGroupName "myResourceGroup" -VMScaleSetName "myScaleSet"

 

 

 

@Kidd_Ip ,

Thank you! It will get me the VMSS, but I wonder how can I see the scale mode there? How can I check if my particular VMSS set to Auto or Manual?

Thank you!

@Oleg_A 

 

Replace "<YourResourceGroupName>" and "<YourVMSSName>" with your actual resource group and VMSS name. This will return the scaling mode(manual or auto) and the maximum number of instances for your VMSS.

@balasubramanim

Thank you! I just cannot figure out what exact parameter is for Scaling Mode... I can see max number of instances - SKU.Capacity, but not sure where to look for scaling mode...

 

Is it "OrchestrationMode" ?



Thank you!

best response confirmed by Oleg_A (Copper Contributor)
Solution

@Oleg_A 

 

Yes, you're correct! The scaling mode is represented by the "OrchestrationMode" property.

@balasubramanim ,

Thank you very much!
1 best response

Accepted Solutions
best response confirmed by Oleg_A (Copper Contributor)
Solution

@Oleg_A 

 

Yes, you're correct! The scaling mode is represented by the "OrchestrationMode" property.

View solution in original post