Azure automation can be an Azure administrator's best friend and can ease up your day to day administration work. There are three options available in Azure automation- Graphical runbooks, PowerShell Work flow and Powershell based runbooks
If you want to play around with Azure automation and want to quickly automate some daily mundane tasks, graphical runbooks are the easiest to start with . You can find many templates in the runbooks gallery in Azure that can easily get the job done easily for you. Lets start with the basics. One of the common tasks that needs to be done is to start or stop VM at a scheduled time, say for eg: your Dev/Test machines that should be shutdown after office hours. The runbooks for this are readily available in the gallery. In this blogpost we will focus on a graphical runbook available in the gallery that can be used to start or stop VMs at a scheduled time.
Schedule automated start and stop of VMS using graphical runbook
Import the template
Click on edit and then “test pane” to do a test run of the template
If you want to start a single VM, give the name of the VM as input parameter. Click on start to do a test run
Publish the runbook to make it available in your automation account
Now you can add a schedule to the runbook
Configure the time when you want the schedule to run
You can select the time and time zone here when you want the schedule to run
Configure input parameters for the schedule, for eg: the VM name or resource group name.