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/devtest-labs/devtest-lab-auto-shutdown.md
+35-35Lines changed: 35 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,74 +1,74 @@
1
1
---
2
-
title: Manage autoshutdown in Azure DevTest Labs and virtual machines
3
-
description: Learn how to set autoshutdown policies for Azure DevTest Labs or for individual virtual machines (VMs) to shut down the VMs at a specific time daily.
2
+
title: Configure auto shutdown policy for labs and virutal machines
3
+
description: Learn how to set auto shutdown schedules and policies for Azure DevTest Labs or for individual virtual machines (VMs) to shut down the VMs at a specific time daily.
4
4
ms.topic: how-to
5
5
ms.date: 11/01/2021
6
6
---
7
7
8
-
# Configure autoshutdown for labs and VMs in DevTest Labs
8
+
# Configure auto shutdown for labs and VMs in DevTest Labs
9
9
10
10
As an Azure DevTest Labs lab owner, you can configure a schedule to shut down all the virtual machines (VMs) in your lab at a specific time of day or night. You save the cost of running machines that aren't being used.
11
11
12
-
You can also set a central autoshutdown policy to control whether lab users can schedule autoshutdown for their own individual VMs. Autoshutdown policies range from allowing VM owners to fully control their VM's shutdown schedules to allowing them no control over the schedules.
12
+
You can also set a central auto shutdown policy to control whether lab users can schedule auto shutdown for their own individual VMs. Auto shutdown policies range from allowing VM owners to fully control their VM's shutdown schedules to allowing them no control over the schedules.
13
13
14
-
This article explains how to set autoshutdown schedules for DevTest Labs labs and for individual lab VMs. The article also describes how to set lab autoshutdown policy, and how to configure autoshutdown notifications.
14
+
This article explains how to set auto shutdown schedules for DevTest Labs labs and for individual lab VMs. The article also describes how to set lab auto shutdown policy, and how to configure auto shutdown notifications.
15
15
16
-
## Configure lab autoshutdown schedule
16
+
## Configure lab auto shutdown schedule
17
17
18
-
Autoshutdown helps minimize lab waste by shutting down all of a lab's VMs at a specific time of day or night. To view or change a lab's autoshutdown schedule, follow these steps:
18
+
auto shutdown helps minimize lab waste by shutting down all of a lab's VMs at a specific time of day or night. To view or change a lab's auto shutdown schedule, follow these steps:
19
19
20
20
1. On the home page for your lab, select **Configuration and policies**.
21
21
1. In the **Schedules** section of the left menu, select **Auto-shutdown**.
22
-
1. On the **Auto-shutdown** screen, for **Enabled**, select **On** to enable autoshutdown, or **Off** to disable it.
23
-
1. For **Scheduled shutdown** and **Time zone**, if you turned on autoshutdown, specify the time and time zone to shut down all lab VMs.
24
-
1. For **Send notification before auto-shutdown?**, select **Yes** or **No** for the option to send a notification 30 minutes before the specified autoshutdown time. If you choose **Yes**, enter a webhook URL endpoint under **Webhook URL** or semicolon-separated email addresses under **Email address** where you want the notification to post or be sent. For more information, see the [Autoshutdown notifications](#autoshutdown-notifications) section.
22
+
1. On the **Auto-shutdown** screen, for **Enabled**, select **On** to enable auto shutdown, or **Off** to disable it.
23
+
1. For **Scheduled shutdown** and **Time zone**, if you turned on auto shutdown, specify the time and time zone to shut down all lab VMs.
24
+
1. For **Send notification before auto-shutdown?**, select **Yes** or **No** for the option to send a notification 30 minutes before the specified auto shutdown time. If you choose **Yes**, enter a webhook URL endpoint under **Webhook URL** or semicolon-separated email addresses under **Email address** where you want the notification to post or be sent. For more information, see the [auto shutdown notifications](#auto-shutdown-notifications) section.
25
25
1. Select **Save**.
26
26
27
-

27
+

28
28
29
29
By default, this schedule applies to all VMs in the lab. To remove this setting from a specific VM, if allowed by policy, open the VM's management pane and change its **Auto-shutdown** setting.
30
30
31
31
> [!NOTE]
32
-
> If you update the autoshutdown schedule for your lab or a VM within 30 minutes of the previously scheduled shutdown time, the new shutdown time takes effect the next day.
32
+
> If you update the auto shutdown schedule for your lab or a VM within 30 minutes of the previously scheduled shutdown time, the new shutdown time takes effect the next day.
33
33
34
-
## Configure lab autoshutdown policy
34
+
## Configure lab auto shutdown policy
35
35
36
-
As a lab owner, you can control cost and minimize waste in your labs by managing autoshutdown policy settings for your lab. To see how to set all lab policies, see [Define lab policies in Azure DevTest Labs](devtest-lab-set-lab-policy.md).
36
+
As a lab owner, you can control cost and minimize waste in your labs by managing auto shutdown policy settings for your lab. To see how to set all lab policies, see [Define lab policies in Azure DevTest Labs](devtest-lab-set-lab-policy.md).
37
37
38
38
> [!IMPORTANT]
39
-
> Autoshutdown policy changes apply only to new VMs created in the lab, not to the already existing VMs.
39
+
> auto shutdown policy changes apply only to new VMs created in the lab, not to the already existing VMs.
40
40
41
41
1. On the home page for your lab, select **Configuration and policies**.
42
42
43
43
1. In the **Schedules** section of the left menu, select **Auto shutdown policy**.
44
44
45
45
1. Select one of the options.
46
46
47
-

47
+

48
48
49
-
-**User sets a schedule and can opt out**: Lab users can override or opt out of the lab schedule. This option grants VM owners full control to set their VMs' autoshutdown schedules.
49
+
-**User sets a schedule and can opt out**: Lab users can override or opt out of the lab schedule. This option grants VM owners full control to set their VMs' auto shutdown schedules.
50
50
51
-
-**User sets a schedule and cannot opt out**: Lab users can override the lab schedule, but they can't opt out of the autoshutdown policy. This option ensures that every lab VM is under an autoshutdown schedule. VM owners can update the schedule time, and set up shutdown notifications.
51
+
-**User sets a schedule and cannot opt out**: Lab users can override the lab schedule, but they can't opt out of the auto shutdown policy. This option ensures that every lab VM is under an auto shutdown schedule. VM owners can update the schedule time, and set up shutdown notifications.
52
52
53
-
-**User has no control over the schedule set by lab administrator**: Lab users can't alter or opt out of the lab autoshutdown schedule. This option gives the lab administrator complete control of the schedule for all lab VMs. VM owners can still set up autoshutdown notifications for their VMs.
53
+
-**User has no control over the schedule set by lab administrator**: Lab users can't alter or opt out of the lab auto shutdown schedule. This option gives the lab administrator complete control of the schedule for all lab VMs. VM owners can still set up auto shutdown notifications for their VMs.
54
54
55
55
1. Select **Save**.
56
56
57
-
## Configure VM autoshutdown settings
57
+
## Configure VM auto shutdown settings
58
58
59
-
Depending on the autoshutdown policy, you can also set an autoshutdown schedule for individual lab VMs.
59
+
Depending on the auto shutdown policy, you can also set an auto shutdown schedule for individual lab VMs.
60
60
61
61
1. On the home page for the VM, in the **Operations** section on the left menu, select **Auto-shutdown**.
62
-
1. On the **Auto-shutdown** screen, for **Enabled**, select **On** to enable autoshutdown, or **Off** to disable it.
63
-
1. For **Scheduled shutdown** and **Time zone**, if you turned on autoshutdown, specify the time and time zone to shut down all lab VMs.
64
-
1. For **Send notification before auto-shutdown?**, select **Yes** or **No** for the option to send a notification 30 minutes before the specified autoshutdown time. If you choose **Yes**, enter a webhook URL endpoint under **Webhook URL** or an email address under **Email address** where you want the notification to post or be sent. For more information, see the [Autoshutdown notifications](#autoshutdown-notifications) section.
62
+
1. On the **Auto-shutdown** screen, for **Enabled**, select **On** to enable auto shutdown, or **Off** to disable it.
63
+
1. For **Scheduled shutdown** and **Time zone**, if you turned on auto shutdown, specify the time and time zone to shut down all lab VMs.
64
+
1. For **Send notification before auto-shutdown?**, select **Yes** or **No** for the option to send a notification 30 minutes before the specified auto shutdown time. If you choose **Yes**, enter a webhook URL endpoint under **Webhook URL** or an email address under **Email address** where you want the notification to post or be sent. For more information, see the [auto shutdown notifications](#auto-shutdown-notifications) section.
65
65
1. Select **Save**.
66
66
67
-

67
+

68
68
69
-
### View activity logs for autoshutdown updates
69
+
### View activity logs for auto shutdown updates
70
70
71
-
After you update autoshutdown settings, you can see the activity logged in the activity log for the VM.
71
+
After you update auto shutdown settings, you can see the activity logged in the activity log for the VM.
72
72
73
73
1. On the home page for the VM, select **Activity log** from the left menu.
74
74
1. Remove the **Resource** filter, apply the appropriate **Resource group** filter, and view the entries for **Add or modify schedules**.
@@ -77,21 +77,21 @@ After you update autoshutdown settings, you can see the activity logged in the a
77
77
78
78
1. Select the **Add or modify schedules** operation to open a summary page that shows more details about the operation.
79
79
80
-
## Autoshutdown notifications
80
+
## Auto shutdown notifications
81
81
82
-
When you enable notifications in autoshutdown configuration, lab users receive a notification 30 minutes before autoshutdown if any of their VMs will be affected. The notification gives users a chance to save their work before the shutdown. If the autoshutdown settings specify an email address, the notification sends to that email address. If the settings specify a webhook, the notification sends to the webhook URL.
82
+
When you enable notifications in auto shutdown configuration, lab users receive a notification 30 minutes before auto shutdown if any of their VMs will be affected. The notification gives users a chance to save their work before the shutdown. If the auto shutdown settings specify an email address, the notification sends to that email address. If the settings specify a webhook, the notification sends to the webhook URL.
83
83
84
84
The notification can also provide links that allow the following actions for each VM if someone needs to keep working:
85
85
86
-
- Skip the autoshutdown this time.
87
-
- Snooze the autoshutdown for an hour.
88
-
- Snooze the autoshutdown for 2 hours.
86
+
- Skip the auto shutdown this time.
87
+
- Snooze the auto shutdown for an hour.
88
+
- Snooze the auto shutdown for 2 hours.
89
89
90
90
You can use webhooks to implement your own notifications. You set up integrations that subscribe to certain events. When one of those events happens, an HTTP POST payload sends to the webhook's URL.
91
91
92
92
Apps like [Azure Logic Apps](../logic-apps/logic-apps-overview.md) and Slack have extensive support for webhooks. For more information about responding to webhooks, see [Azure Functions HTTP triggers and bindings overview](../azure-functions/functions-bindings-http-webhook.md) and [Add an HTTP trigger for Azure Logic Apps](../connectors/connectors-native-http.md#add-an-http-trigger).
93
93
94
-
The following example shows you how to use Logic Apps to configure an autoshutdown notification that sends an email to VM owners.
94
+
The following example shows you how to use Logic Apps to configure an auto shutdown notification that sends an email to VM owners.
95
95
96
96
### Create a logic app that sends email notifications
97
97
@@ -100,7 +100,7 @@ Logic Apps provides many connectors that make it easy to integrate a service wit
100
100
1. Create a logic app.
101
101
1. Configure the built-in template.
102
102
1. Integrate with your email client.
103
-
1. Get the Webhook URL to use in autoshutdown notification settings.
103
+
1. Get the Webhook URL to use in auto shutdown notification settings.
104
104
105
105
To get started, create a logic app in Azure with the following steps:
106
106
@@ -220,7 +220,7 @@ Now, integrate with your email client.
220
220
221
221
1. Select **Save** on the toolbar.
222
222
223
-
Now you can copy the webhook URL. Select the **When a HTTP request is received** step, and then select the copy button to copy the HTTP POST URL to the clipboard. Paste this webhook URL into the autoshutdown notification settings.
223
+
Now you can copy the webhook URL. Select the **When a HTTP request is received** step, and then select the copy button to copy the HTTP POST URL to the clipboard. Paste this webhook URL into the auto shutdown notification settings.
224
224
225
225

0 commit comments