Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>Azure VM Scaleset Start/Stop Tasks
Azure VM Scaleset Start/Stop Tasks

Azure VM Scaleset Start/Stop Tasks

Aammir Mirza

|
14 installs
| (0) | Free
Extension to Start/Stop VM ScalSet so that you can save some recurring cost for develpment, test, lab environment.
Get it free

Azure VM Scaleset Start/Stop

Author - Aammir Mirza

Use to manage Azure VM Scaleset for Start/Stop action. You can use it with AzDO pipelines and schedule the pipelines to Start/Stop the VM Scalesets based on working hours and when required.

As we trigger the operation directly in VM Scalesets, it dosenot matter if the instances are Windows or Linux.

Platform

  • Windows Agents for running pipeline

Installation

Download the Free 'StartStop VM Scaleset Tasks' from here and populate the below mentioned mandatory parameters to get it working

Configuration

Classic Pipeline (UI)

  • Action: Select appropriate action Start/Stop, to perform on the Virtual machine Scaleset.

  • Azure RM Subscription: Select appropriate SPN, or create one based on available subscriptions from the drop down list. Note: If VMSS not provided exclusively, all the VMs unders the select scope will be operated.

  • ResourceGroupName (Advanced): In case you choose to perform operation on all the VMSS within the Resource Group(s), provide the delimited list of RGs to perform the action.

Eg: 'RG1,RG2,RG3.....RGn' Please respect the format

vmssExcludedFromAction (Advanced): If you want to skip or exclude virtual machines scaleset you can provide the list of VMSS to skip the operation.

Eg: 'VMSS1,VMSS2,VMSS3.....VMSSn' Please respect the format

Simulate : Check What-If, for the selected action. Run as sandbox and verbosed the action. (No operation performed on VMSS)

YAML Usage

steps:
- task: AammirMirza.CP-tartStopAzureVMSS.tartStopAzureVMSS-Task.StartStopAzureVMSS@1
  displayName: 'StartStop VMSS'
  inputs:
    ResourceGroupName: "az-appliance,NetworkWatcherRG" # Optional list of RGs to be actioned
    ConnectedServiceName: myfreeSub # Service Connection MANDATORY
    vmssExcludedFromAction: "VMSSx,VMSSy" # Optional, If want to omit list of the VMs from bulk action, those list will be skipped.
    Simulate: true # Check what would have happened

GIF for reference

Demo for exclusion/Skip/Ignore the VMSS (Scale set from action)

Running action (STAR/STOP) for all the VMSS in a single ResourceGroup (or multiple RGs. Comma separated).

If you cannot see GIF follow the link

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Limitation

  • Available for Windows based agent only

Updates

Issue fixed for incocorrectly giving ERROR at the output/console of the task completion.

License

MIT

Support

emailto: aammir.mirza@hotmail.com

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft