Open In App

Microsoft Azure – Setup Auto Startup and Shutdown of an Azure VM

In this article, we will be seeing about how we can set up an auto stop and start of Azure VM/ Azure VMs on schedule time during business off-hours, The main objective of the task is to save the cost of resources that are being used on non-business hours.

Prerequisites:



Automation Account to hold the Automation runbooks & configuration used for automating operations and management tasks around Azure and non-Azure resources.

Implementation: 

Follow the below steps to setup Auto start-up and auto shutdown of an Azure VM:



Step 1: Login to Azure Portal

Step 2: Search/Go to Automation Accounts and Click on + Create

Select >> Subscription >> Resource Group >> Automation Account Name >> Region and Leave the rest as default values >> Click on Review + Create

Step 3: then Click on resources.

Step 4: Click on + Create solution

Step 5: In Search the Marketplace >> search for “Start/Stop VMs during off-hours” and Select “Start/Stop VMs during off-hours” 

Step 6: For Add Solution >> Click on *Workspace 

Note: * represents every resource group in the subscription.

Step 7: Final Step. Click on Create to Provision and apply the configuration changes.

Now, the Selected VM or VMs will start and stop at the scheduled time. 

That’s it you are done.

Article Tags :