Skip to content

Commit 74b2fa3

Browse files
authored
Merge pull request #221789 from RoseHJM/dtl-maint-updates
DTL Content Freshness Updates
2 parents bd31c7f + 5617777 commit 74b2fa3

File tree

5 files changed

+33
-17
lines changed

5 files changed

+33
-17
lines changed

articles/devtest-labs/devtest-lab-auto-shutdown.md

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to set auto shutdown schedules and policies for Azure Dev
44
ms.topic: how-to
55
ms.author: rosemalcolm
66
author: RoseHJM
7-
ms.date: 11/01/2021
7+
ms.date: 12/18/2021
88
---
99

1010
# Configure auto shutdown for labs and VMs in DevTest Labs
@@ -23,10 +23,12 @@ Auto shutdown helps minimize lab waste by shutting down all of a lab's VMs at a
2323
1. In the **Schedules** section of the left menu, select **Auto-shutdown**.
2424
1. On the **Auto-shutdown** screen, for **Enabled**, select **On** to enable auto shutdown, or **Off** to disable it.
2525
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.
26-
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.
27-
1. Select **Save**.
26+
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.
27+
- 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.
28+
29+
:::image type="content" source="media/devtest-lab-auto-shutdown/auto-shutdown.png" alt-text="Screenshot showing setting auto shutdown details for a lab.":::
2830

29-
![Screenshot that shows setting auto shutdown details for a lab.](media/devtest-lab-auto-shutdown/auto-shutdown.png)
31+
1. Select **Save**.
3032

3133
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.
3234

@@ -46,7 +48,7 @@ As a lab owner, you can control cost and minimize waste in your labs by managing
4648

4749
1. Select one of the options.
4850

49-
![Screenshot that shows auto shutdown policy options.](./media/devtest-lab-auto-shutdown/policy-options.png)
51+
:::image type="content" source="media/devtest-lab-auto-shutdown/policy-options.png" alt-text="Screenshot showing setting auto shutdown policy options.":::
5052

5153
- **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.
5254

@@ -66,7 +68,7 @@ Depending on the auto shutdown policy, you can also set an auto shutdown schedul
6668
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.
6769
1. Select **Save**.
6870

69-
![Screenshot that shows setting auto shutdown details for a V M.](media/devtest-lab-auto-shutdown/compute-auto-shutdown.png)
71+
:::image type="content" source="media/devtest-lab-auto-shutdown/compute-auto-shutdown.png" alt-text="Screenshot showing setting auto shutdown details for a virtual machine.":::
7072

7173
### View activity logs for auto shutdown updates
7274

@@ -75,7 +77,7 @@ After you update auto shutdown settings, you can see the activity logged in the
7577
1. On the home page for the VM, select **Activity log** from the left menu.
7678
1. Remove the **Resource** filter, apply the appropriate **Resource group** filter, and view the entries for **Add or modify schedules**.
7779

78-
![Screenshot that shows Add or modify schedules in the Activity log.](media/devtest-lab-auto-shutdown/activity-log-entry.png)
80+
:::image type="content" source="media/devtest-lab-auto-shutdown/activity-log-entry.png" alt-text="Screenshot showing Add or modify schedules in the Activity log.":::
7981

8082
1. Select the **Add or modify schedules** operation to open a summary page that shows more details about the operation.
8183

@@ -116,8 +118,12 @@ To get started, create a logic app in Azure with the following steps:
116118
- Select a **Resource Group** or create a new one.
117119
- Enter a **Logic App name**.
118120
- Select a **Region** for the logic app.
121+
- Select a **Plan type** for the logic app.
122+
- Select a **Windows Plan** for the logic app.
123+
- Select a **Pricing plan** for the logic app.
124+
- Enabled **Zone redundancy** if necessary.
119125

120-
![Screenshot that shows the Create Logic App page.](media/devtest-lab-auto-shutdown/new-logic-app-page.png)
126+
:::image type="content" source="media/devtest-lab-auto-shutdown/new-logic-app-page.png" alt-text="Screenshot showing the Create Logic App page.":::
121127

122128
1. Select **Review + create**, and when validation passes, select **Create**.
123129

@@ -131,15 +137,15 @@ Next, configure the built-in template.
131137

132138
1. Under **Templates**, select **HTTP Request/Response**.
133139

134-
![Screenshot that shows the HTTP Request Response template.](media/devtest-lab-auto-shutdown/select-http-request-response-option.png)
140+
:::image type="content" source="media/devtest-lab-auto-shutdown/select-http-request-response-option.png" alt-text="Screenshot showing the HTTP Request Response template.":::
135141

136142
1. On the **HTTP Request-Response** page, select **Use this template**.
137143

138-
![Screenshot that shows selecting Use this template.](./media/devtest-lab-auto-shutdown/select-use-this-template.png)
144+
:::image type="content" source="media/devtest-lab-auto-shutdown/select-use-this-template.png" alt-text="Screenshot showing selecting Use this template.":::
139145

140146
1. Paste the following JSON code into the **Request Body JSON Schema** section.
141147

142-
![Screenshot that shows the Request Body JSON Schema in the designer.](media/devtest-lab-auto-shutdown/request-json.png)
148+
:::image type="content" source="media/devtest-lab-auto-shutdown/request-json.png" alt-text="Screenshot showing the Request Body JSON Schema in the designer.":::
143149

144150
```json
145151
{
@@ -208,23 +214,31 @@ Now, integrate with your email client.
208214

209215
1. In the designer, select **New step**.
210216

211-
![Screenshot that shows New step in the designer.](media/devtest-lab-auto-shutdown/new-step.png)
217+
:::image type="content" source="media/devtest-lab-auto-shutdown/new-step.png" alt-text="Screenshot showing New step in the designer.":::
212218

213219
1. On the **Choose an operation** page, enter *Office 365 Outlook - Send an email* in the Search field, and then select **Send an email (V2)** from **Actions**.
214220

215-
![Screenshot that shows the Send an email V2 option.](media/devtest-lab-auto-shutdown/select-send-email.png)
221+
:::image type="content" source="media/devtest-lab-auto-shutdown/select-send-email.png" alt-text="Screenshot showing the Send an email V2 option.":::
216222

217223
1. In the **Send an email (V2)** form, fill in the **To**, **Subject**, and **Body** fields.
218224

219225
Select **Add dynamic content** to automatically populate the notification with values that the app and connectors use. For example, for **To**, select **owner**. Populate **Subject** with **vmName** and **labName**. Add content like **skipUrl** and **delayUrl** values to the message body.
220226

221-
![Screenshot that shows an example notification email.](media/devtest-lab-auto-shutdown/email-options.png)
227+
:::image type="content" source="media/devtest-lab-auto-shutdown/email-options.png" alt-text="Screenshot showing shows an example notification email.":::
222228

223229
1. Select **Save** on the toolbar.
224230

225-
Now you can copy the webhook URL. Select the **When an 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.
231+
1. Now you can copy the webhook URL.
232+
233+
1. Select the **When an HTTP request is received** step, and then select the copy button to copy the HTTP POST URL to the clipboard.
234+
235+
:::image type="content" source="media/devtest-lab-auto-shutdown/webhook-url.png" alt-text="Screenshot showing copying the webhook URL.":::
236+
237+
1. Paste this webhook URL into the auto shutdown notification settings.
238+
239+
:::image type="content" source="media/devtest-lab-auto-shutdown/auto-shutdown-settings-webhook.png" alt-text="Screenshot showing pasting the webhook URL into the auto-shutdown settings.":::
226240

227-
![Screenshot that shows copying the webhook URL.](media/devtest-lab-auto-shutdown/webhook-url.png)
241+
1. Select **Save**.
228242

229243
## Next steps
230244

articles/devtest-labs/index.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
ms.collection: collection
1313
author: RoseHJM #Required; your GitHub user alias, with correct capitalization.
1414
ms.author: rosemalcolm #Required; microsoft alias of author; optional team alias.
15-
ms.date: 08/26/2021 #Required; mm/dd/yyyy format.
15+
ms.date: 12/16/2022 #Required; mm/dd/yyyy format.
1616

1717
# linkListType: architecture | concept | deploy | download | get-started | how-to-guide | learn | overview | quickstart | reference | tutorial | whats-new
1818

@@ -76,5 +76,7 @@ landingContent:
7676
url: /cli/azure/lab
7777
- text: PowerShell
7878
url: /powershell/module/az.devtestlabs/#devtest_labs
79+
- text: PowerShell DevTest Labs Module
80+
url: https://github.com/Azure/azure-devtestlab/tree/master/samples/DevTestLabs/Modules/Library
7981
- text: REST API
8082
url: /rest/api/dtl
43.7 KB
Loading
-27.9 KB
Loading
35.5 KB
Loading

0 commit comments

Comments
 (0)