Schedule Start-Stop VMs SOP[1061]

Schedule Start-Stop VMs SOP[1061]


SOP No: AZ-004

SOP Title: Schedule VM start and Stop


Review Date: Insert Date




SOP Number

AZ004


SOP Title

 Schedule VM start and Stop


 


NAME

TITLE

SIGNATURE

DATE

Author

Ankit Jain

Cloud Engineer



First Reviewer 

Varun Kumar

Product Manager Trainee



Second Reviewer 





Authoriser

Henry/Aditya

CTO






Effective Date:



Effective Time:

.4


Other Essential SOPs


  • NONE


Purpose

This SOP shows how to Schedule VM start and Stop. Please read thoroughly before executing the steps.

Pre-Requisites 

Information to be captured

  • Resource Group Name
  • VM Name
  • Minimum Global Administrator access/ User Access Administrator (For Automation Account Creation only)
  • For Managing Automation Account you can use Contributor Right 

Steps Involved:

Step 1: Go to portal.azure.com and login to the account in which you want to implement the Start-Stop schedular.

Step 2: In the search bar above, search for Automation Accounts. 


Step3: Create an Automation Account, if not exist already.

Step 4: Create a RunAs Automation account. Click + Sign and fill following details ( Please note you need minimum Global Administrator rights to create this account, use the Global administrator login only) Fill in Name you want, select Desired RG and location. Make sure RunAs Account should be “Yes” and then click create   




Step 5: Under Process Automation, click Runbooks


Step 6:  click “Browse Gallery” 


Step7: Import Graphical Runbook “Start Azure V2 VMs” and click on “Import”



Step 7: Go back to Runbooks section under Process Automation and open the imported Runbook from the list 


Step 8: Click “Edit” and then click “Publish”









Step 9: Now click on “Link to Schedule” 


Step 10: Create a Schedule for the VM, Select first option


Create a Schedule


Enter Desired Values

Enter Schedule Name (This should be like this “<VM name>-Start” and description

Select the date and enter the time 

Select the Time zone (IST if Indian client)

Select recurrence 

Lets say schedule may run Mon – Fri 10:00 AM 

Select Date accordingly and time 10:00 AM

Recurrence should be as snap below






Click Create 

Step 10: Now select the second option to set parameters values


Step 11: enter VM name and Resource Group name

“AzureconnectionAssetName” should left as blank and click ok, ( Start schedular created)




Step 12: Repeat steps from Step no 5 to 11 but this time import Stop Schedular script from Gallery 

This one.



Rest steps are same.


References: 


Change History


SOP no.

Effective
Date

Significant Changes

Previous
SOP no.




















    • Related Articles

    • SOP Format

      Header SOP No: <value> SOP Title: <Value>  Review Date: Insert Date SOP Number SOP Title   NAME TITLE SIGNATURE DATE Author     First Reviewer     Second Reviewer         Authoriser           Effective Date:     Effective Time:     Other Essential ...
    • SOP for Whitelist IP on Azure

      SOP No: AZ-003 SOP Title: Whitelisting IP on Azure Review Date: Insert Date SOP Number AZ003 SOP Title Whitelisting IP on Azure NAME TITLE SIGNATURE DATE Author Ankit Jain Cloud Engineer First Reviewer  Varun Kumar Product Manager Trainee Second ...
    • Windows Servers Security Patches Activity[1033]

      SOP No: WIN-001 SOP Title: Window Servers Security Patches Activity Review Date: Insert Date SOP Number WIN001 SOP Title  Windows Servers Security Patches Activity   NAME TITLE SIGNATURE DATE Author Ankit Jain Cloud Engineer First Reviewer  Varun ...
    • Creating Windows VM in Azure

      SOP No: AZ-002 SOP Title: Create a Windows VM in Azure Account   Review Date: Insert Date SOP Number  AZ002    SOP Title  Create a Windows VM in Azure Account        NAME  TITLE  SIGNATURE  DATE  Author  Shivam Singh  Cloud Engineer        First ...
    • Login-To-Azure

      SOP No: AZ-001 SOP Title: Log in to Azure Account  Review Date: Insert Date SOP Number AZ001 SOP Title Log in to Azure Account   NAME TITLE SIGNATURE DATE Author Shivam Singh Cloud Engineer First Reviewer  Varun Kumar Product Manager Trainee Second ...