You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/lab-services/devtest-lab-auto-shutdown.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,19 @@ ms.workload: na
13
13
ms.tgt_pltfrm: na
14
14
ms.devlang: na
15
15
ms.topic: article
16
-
ms.date: 05/17/2019
16
+
ms.date: 01/17/2020
17
17
ms.author: spelluru
18
18
19
19
---
20
20
21
-
# Manage autoshutdown policies for a lab in Azure DevTest Labs
21
+
# Configure autoshutdown for lab and compute virtual machines in Azure DevTest Labs
22
+
23
+
This article explains how to configure autoshutdown settings for lab VMs in DevTest Labs and compute VMs.
24
+
25
+
## Configure autoshutdown for lab VMs (DevTest Labs)
22
26
Azure DevTest Labs enables you to control cost and minimize waste in your labs by managing policies (settings) for each lab. This article shows you how to configure autoshutdown policy for a lab account and configure autoshutdown settings for a lab in the lab account. To view how to set every lab policy, see [Define lab policies in Azure DevTest Labs](devtest-lab-set-lab-policy.md).
23
27
24
-
## Set auto shutdown policy for a lab
28
+
###Set auto shut down policy for a lab
25
29
As a lab owner, you can configure a shutdown schedule for all the VMs in your lab. By doing so, you can save costs from running machines that aren't being used (idle). You can enforce a shutdown policy on all your lab VMs centrally but also save your lab users the effort from setting up a schedule for their individual machines. This feature enables you to set the policy on your lab schedule starting from offering no control to full control, to your lab users. As a lab owner, you can configure this policy by taking the following steps:
26
30
27
31
1. On the home page for your lab, select **Configuration and policies**.
@@ -30,7 +34,7 @@ As a lab owner, you can configure a shutdown schedule for all the VMs in your la
30
34
31
35

32
36
33
-
## Configure auto shutdown settings
37
+
###Configure auto shutdown settings
34
38
The autoshutdown policy helps to minimize lab waste by allowing you to specify the time that this lab's VMs shut down.
35
39
36
40
To view (and change) the policies for a lab, follow these steps:
@@ -69,7 +73,7 @@ If you set your lab to this policy, lab users can't override or opt out of the l
69
73
70
74

71
75
72
-
## Notifications
76
+
###Notifications
73
77
Once autoshutdown set up by the lab owner, notifications will be sent to the lab users 30 minutes before the autoshutdown triggered if any of their VMs will be affected. This option gives lab users a chance to save their work before the shutdown. The notification also provides links for each VM for the following actions:
74
78
75
79
- Skip the autoshutdown for this time
@@ -79,7 +83,7 @@ Notification is sent through the configured web hook endpoint or an email addres
79
83
80
84
We recommend you to use web hooks because they're extensively supported by various apps (for example, Slack, Azure Logic Apps, and so on.) and allows you to implement your own way for sending notifications. As an example, this article walks you through how to get autoshutdown notification from emails by using Azure Logic Apps. First, let's quickly go through the basic steps to enable autoshutdown notification in your lab.
81
85
82
-
## Create a logic app that receives email notifications
86
+
###Create a logic app that receives email notifications
83
87
[Azure Logic Apps](../logic-apps/logic-apps-overview.md) provides many out-of-the-box connectors that makes it easy to integrate a service with other clients, like Office 365 and twitter. At the high level, the steps to set up a Logic App for email notification can be divided into four phases:
84
88
85
89
- Create a logic app.
@@ -182,5 +186,16 @@ To get started, create a logic app in your Azure subscription by using the follo
1. On the **Virtual machine** page, select **Auto-shutdown** on the left menu.
192
+
2. On the **Auto-shutdown** page, select **On** to enable this policy, and **Off** to disable it.
193
+
3. If you enable this policy, specify the **time** (and **time zone**) at which the VM should be shut down.
194
+
4. Specify **Yes** or **No** for the option to send a notification 30 minutes prior to the specified autoshutdown time. If you choose **Yes**, enter a webhook URL endpoint or email address specifying where you want the notification to be posted or sent. The user receives notification and is given the option to delay the shutdown. For more information, see the [Notifications](#notifications) section.
195
+
9. Select **Save**.
196
+
197
+

198
+
185
199
## Next steps
186
200
To learn how to set all policies, see [Define lab policies in Azure DevTest Labs](devtest-lab-set-lab-policy.md).
0 commit comments