Azure Virtual Machine – Configure Auto shutdown

In few of my previous articles listed below, we have learned how to create different Virtual Machine in Azure using Infrastructure as a Service offering by Microsoft.

You can utilize these Virtual Machines for multiple purposes depending on the requirements that you might have.  You might then host your different type of work loads on these Virtual machines.

There might be cases where you would like to shut-down the Virtual Machines when they are not in use. For example: Non-business hours, Weekends etc.

Shutting down (deallocate) the Virtual Machines would definitely reduce the costs because, it doesn’t make sense to have them up and running when you are sure that your users are not going to use them at specific set of the times.

In one of my previous articles, we have discussed about Shutting down the Virtual Machine that is associated with a Dev/Test lab.

Azure DevTest Labs: Policies to Control Costs – Part Two (http://www.c-sharpcorner.com/article/azure-devtest-labs-policies-to-control-costs-part-two/ )

Microsoft Azure team has recently announced a similar Auto-Shut shown for regular Virtual Machines. You can shut-down your Virtual Machine at a specific time based on the time-time that you configure.

Let’s see how to shut down the Virtual. Login to your Azure account and navigate to the Virtual Machines that you would like to shut down as shown below.

1_vmlisting

Clicking on the Virtual Machine, you will be taken to the following page.

2_vmdetails

Click on the “Auto Shut down” menu as shown below.

3_autoshutdown

Clicking on the Auto-shutdown you will be taken to the following blade where you can configure the details for shutting down the Virtual Machine.

4_autoshutdown

As shown in the above screen capture, click on the “ON” button of the Enabled field and click on “Save” to save the changes.

That’s it. We have configured the Virtual Machine to get auto shutdown at 10:00 A.M as per the above screen capture. You can specify anytime that you would like along with the Time Zone.

Below is the screen capture taken at 10:00 A.M after the VM got shut down.

5_stopped

Summary: In this article, we have learned how to configure Auto-shutdown for a Virtual Machine that is created using Infrastructure as a Service offering from Microsoft Azure team.

2 comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s