Connects to Azure and stops specified VMs in a sequence and including a wait time between the VMs. It is based on Stop-AzureV2VMs.
If you provide the sequence "vm4, 30, vm3, 60, vm2, vm1", then VM4 stops first, then it waits 30 seconds before VM3 stops, then waits again for 60 seconds, then VM2 stops and finally VM4 stops.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Stop-VMsInSequence

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Thomas Zuehlke



AzureAutomation VirtualMachines Utility Stop Sequence


This script has no dependencies.

Version History

Version Downloads Last updated
1.2 (current version) 70 1/28/2020
1.0 26 1/28/2020