Wednesday, September 16, 2020

Setup Runbook to Start VM automatically

 Description: Here I have explained how to Start or Stop VM automatically in Azure. 

Procedure:  

  • For testing purpose I have created one virtual machine named Webserver1
  • Open the Azure Portal and search for Automation Accounts
  • Create Automation Account and fill all require details like subscription, Resource Group and Location

  • Once Automation Account created successfully, Open Automation Account and navigate to Runbook under Process Automation
  • Under Runbook click on Browse gallery and  look for "Start Azure V2 VMs" and "Stop Azure V2 VMs"
  • Open "Start Azure V2 VMs" and click on Import Runbook


  • Once you click on Import it will take some time to import. After import successfully click on edit and publish runbook






  • Once your Runbook published it is ready to schedule, click on "Link to Schedule" and create new schedule.
  • Now click on Start and define Resource Group Name and VM name 
  • Once you click on ok please wait for the schedule and verify your VM will start not. Once schedule completed your VM will start automatically. 


No comments:

Post a Comment