How to Automate a scheduled power down and on of Azure VMs
If you need to create an automated process that shuts down or powers on your Azure VMs to save you from paying fees to Microsoft for services while they are not being utilised, you can do this with the Azure Virtual Machine Scheduler tool that we have created. AVMS as it is known can automate a schedules that you specify to do all this for you and to send you email alerts during the process. You could use AVMS for your Development and Test systems housed within Azure, saving you money while they are not being used.
It is quite a simple process to create a new schedule. Open up the Azure Virtual Machine Scheduling tool and first let it sync with your Microsoft Azure Subscriptions so that it can populate all your VMs.
Click the Virtual Machines Icon to show your Azure virtual machines.
Select the Azure VMs you want to either power down or power on and make sure that you tick the according checkbox for each machine. Once you have selected all the machines you wish, right click in the console as below and choose create new schedule.
Next, give the schedule a name, use the drop down box to choose whether to automate a power on or shutdown schedule for your Azure Virtual Machines and then a description if you wish to do so. Click OK to continue. In the example below, we can see we are creating a Power on Schedule. Keep in mind, if you wish to power machines on and then off, you will need to go through these steps twice, choosing the appropriate Job type.
Click NEW to create a new schedule
Now choose a date and time you wish your Azure virtual machines to Power On. Click OK when ready.
Confirm the Date and Time are what you created and then click OK.
Thats all there is to it. You have now automated a scheduled power down or power on of your virtual machines within Azure.
The Azure Virtual Machine Scheduling tool will now start up your virtual machines with Microsoft’s Azure cloud at the time you specified. If you have setup email alerts, you will be notified when the job starts and completes.
If you now need to complete a Power Off schedule, go through these same steps again, but choose Shutdown Virtual Machines (Deallocate) as show in the window below.
Also, see the other products that SmiKar Software have developed. From SnaPatch our patch management addon for SCCM, SnapShot Master that automates your Vmware or Hyper-V snapshots and even AVMD our free tool that helps deploy Virtual Machines to Microsoft’s Azure cloud.