Forum Discussion

Oleg_A's avatar
Oleg_A
Copper Contributor
Sep 17, 2024

Check VMSS Scale Mode via PowerShell

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!

  • Oleg_A 

     

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

  • Oleg_A 

     

    Try this:

     

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

     

     

     

    • Oleg_A's avatar
      Oleg_A
      Copper Contributor
      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!
      • balasubramanim's avatar
        balasubramanim
        Iron Contributor

        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.

Resources