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-create-template.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,14 @@ description: Use the Azure portal to create an Azure DevTest Labs virtual machin
4
4
ms.topic: how-to
5
5
ms.author: rosemalcolm
6
6
author: RoseHJM
7
-
ms.date: 03/28/2025
7
+
ms.date: 03/31/2025
8
8
ms.custom: UpdateFrequency2
9
9
10
-
#customer intent: As a lab user, I want to create lab VM custom images by using VHD files, so I can easily provide a variety of images to lab users for creating VMs.
10
+
#customer intent: As a lab user, I want to create lab VM custom images by using VHD files, so I can provide a variety of images to lab users for creating VMs.
11
11
12
12
---
13
13
14
-
# Create a custom image for Azure DevTest Labs virtual machines from VHD files
14
+
# Create a custom image for an Azure DevTest Labs virtual machine from a VHD file
@@ -41,13 +41,13 @@ To create a custom image for DevTest Labs from a VHD or VHDX file, follow these
41
41
- If you choose **Linux**, select the checkbox if you ran **deprovision** on the machine when you created the VHD file.
42
42
-**VHD Generation**: Select whether you have a **V1** (VHD) or **V2** (VHDX) file.
43
43
-**VHD**: Select the uploaded VHD file for the custom image from the dropdown menu.
44
-
-**Plan name,****Plan offer**, and **Plan publisher**: If the VHD isn't a licensed image published by Microsoft, optionally enter the name of the Marketplace image or SKU used to create the VHD, product or offer name, and plan publisher. If the image is a licensed image, these fields are prepopulated with the plan information.
44
+
-**Plan name,****Plan offer**, and **Plan publisher**: If the VHD isn't a licensed image published by Microsoft, optionally enter the name of the Marketplace image or SKU used to create the VHD, a product or offer name, and the plan publisher. If the image is a licensed image, these fields are prepopulated with the plan information.
45
45
46
46
1. Select **OK**.
47
47
48
48
:::image type="content" source="media/devtest-lab-create-template/create-custom-image.png" alt-text="Screenshot that shows the Custom image page.":::
49
49
50
-
After creation, the custom image is stored in the lab's storage account, and appears in the list of VM base images for the lab. Lab users can create new VMs based on the custom image.
50
+
After creation, the custom image is stored in the lab's storage account. The image appears on the lab **Custom images** page and on the list of VM base images for the lab. Lab users can create new VMs based on the custom image.
51
51
52
52
:::image type="content" source="media/devtest-lab-create-template/custom-image-available-as-base.png" alt-text="Screenshot that shows the Custom images available in the list of base images.":::
Copy file name to clipboardExpand all lines: articles/devtest-labs/devtest-lab-set-lab-policy.md
+28-26Lines changed: 28 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how to define lab policies such as VM sizes, maximum VMs per
4
4
ms.topic: how-to
5
5
ms.author: rosemalcolm
6
6
author: RoseHJM
7
-
ms.date: 03/28/2025
7
+
ms.date: 03/31/2025
8
8
ms.custom: UpdateFrequency2
9
9
10
10
#customer intent: As a lab administrator, I want to be able to set policies like allowed numbers of VMs per user and shutdown schedules, so I can control lab costs and improve manageability.
@@ -14,43 +14,45 @@ ms.custom: UpdateFrequency2
14
14
15
15
This article describes how Azure DevTest Labs administrators can manage lab policies to control lab costs, minimize waste, and improve manageability. Lab policies you can set include:
-[Maximum VMs per user](#virtual-machines-per-user)
19
+
-[Maximum VMs per lab](#virtual-machines-per-lab)
20
+
-[Autoshutdown schedule](#autoshutdown)
21
+
-[Autostart schedule](#autostart)
22
+
-[Autoshutdown policy](#autoshutdown-policy)
23
23
24
24
## Prerequisites
25
25
26
26
**Contributor** or **Owner** level permissions in the lab.
27
27
28
28
## Set lab policies
29
29
30
-
To set lab policies, on your lab page in the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040), select **Configuration and policies** from the left navigation.
30
+
To set lab policies:
31
31
32
-
:::image type="content" source="./media/devtest-lab-set-lab-policy/configuration-policies-menu.png" alt-text="Screenshot that shows the Configuration and policies menu for a lab.":::
32
+
1. On your lab page in the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040), select **Configuration and policies** from the left navigation.
33
33
34
-
On the **Configuration and policies** page, select the policy you want to configure from the **Settings** and **Schedules** sections of the left navigation.
34
+
:::image type="content" source="./media/devtest-lab-set-lab-policy/configuration-policies-menu.png" alt-text="Screenshot that shows the Configuration and policies menu for a lab.":::
35
35
36
-
:::image type="content" source="./media/devtest-lab-set-lab-policy/policies-menu.png" alt-text="Screenshot that shows a lab's Configuration and Policies options.":::
36
+
1. On the **Configuration and policies** page, select the policy you want to configure from the **Settings** and **Schedules** sections of the left navigation.
37
+
38
+
:::image type="content" source="./media/devtest-lab-set-lab-policy/policies-menu.png" alt-text="Screenshot that shows a lab's Configuration and Policies options.":::
37
39
38
40
<aname="set-allowed-virtual-machine-sizes"></a>
39
41
### Allowed virtual machine sizes
40
42
41
-
This policy specifies the VM sizes that users can create in the lab.
43
+
This policy limits the VM sizes that users can create in the lab. The default policy setting is **All sizes**.
42
44
43
45
1. On the lab's **Configuration and policies** page, select **Allowed virtual machines sizes** from the left navigation.
44
46
1. On the **Allowed virtual machines sizes** page, select **All sizes** or **Selected sizes**.
45
47
1. If you select **Selected sizes**, select the VM sizes to allow users to create in the lab.
46
48
1. Select **Save**.
47
49
48
-
:::image type="content" source="./media/devtest-lab-set-lab-policy/allowed-vm-sizes.png" alt-text="Screenshot showing Allowed VM sizes.":::
50
+
:::image type="content" source="./media/devtest-lab-set-lab-policy/allowed-vm-sizes.png" alt-text="Screenshot showing Allowed VM sizes.":::
49
51
50
52
<aname="set-virtual-machines-per-user"></a>
51
53
### Virtual machines per user
52
54
53
-
This policy specifies the maximum number of VMs that an individual lab user can claim or create.
55
+
This policy specifies the maximum number of VMs and VMs using premium disks that an individual lab user can claim or create. The default policy setting is **Off**.
54
56
55
57
1. On the lab's **Configuration and policies** page, select **Virtual machines per user** from the left navigation.
56
58
1. On the **Virtual machines per user** page, under **Limit the number of virtual machines**, select **On** or **Off** to enable or disable the policy.
@@ -59,15 +61,15 @@ This policy specifies the maximum number of VMs that an individual lab user can
59
61
1. If you select **On**, enter the maximum number of VMs using premium solid-state disks (SSDs) that a user can claim or create. This number applies only to Premium SSDs, not Standard SSDs.
60
62
1. Select **Save**.
61
63
62
-
:::image type="content" source="./media/devtest-lab-set-lab-policy/max-vms-per-user.png" alt-text="Screenshot showing Virtual machines per user.":::
64
+
:::image type="content" source="./media/devtest-lab-set-lab-policy/max-vms-per-user.png" alt-text="Screenshot showing Virtual machines per user.":::
63
65
64
66
If a user tries to create or claim a VM after the user limit is met, an error message indicates that the user can't exceed their VM limit.
65
67
66
68
:::image type="content" source="./media/devtest-lab-set-lab-policy/error.png" alt-text="Screenshot showing the error that the user can't exceed their VM limit.":::
67
69
68
70
### Virtual machines per lab
69
71
70
-
This policy specifies the maximum number of VMs that all users can create in the current lab.
72
+
This policy specifies the maximum number of VMs that all users can create in the current lab. The default policy setting is **Off**.
71
73
72
74
1. On the lab's **Configuration and policies** page, select **Virtual machines per lab** from the left navigation.
73
75
1. On the **Virtual machines per lab** page, under **Limit the number of virtual machines**, select **On** or **Off** to enable or disable the policy.
@@ -76,14 +78,14 @@ This policy specifies the maximum number of VMs that all users can create in the
76
78
1. If you selected **On**, enter the maximum number of VMs in the lab that can use premium SSDs.
77
79
1. Select **Save**.
78
80
79
-
:::image type="content" source="./media/devtest-lab-set-lab-policy/max-vms-per-lab.png" alt-text="Screenshot showing VMs per lab.":::
81
+
:::image type="content" source="./media/devtest-lab-set-lab-policy/max-vms-per-lab.png" alt-text="Screenshot showing VMs per lab.":::
80
82
81
83
If a user tries to create or claim a VM after the lab limit is met, an error message indicates that the VM can't be created or claimed.
82
84
83
85
<aname="set-auto-shutdown"></a>
84
86
### Autoshutdown
85
87
86
-
Autoshutdown helps minimize lab waste by shutting down lab VMs at a specific time of day.
88
+
Autoshutdown helps minimize lab waste by shutting down lab VMs at a specific time of day. The default policy setting is **Off**.
87
89
88
90
1. On the lab's **Configuration and policies** page, select **Auto-shutdown** from the left navigation.
89
91
1. On the **Auto-shutdown** page, select **On** or **Off** to enable or disable the policy.
@@ -92,9 +94,9 @@ Autoshutdown helps minimize lab waste by shutting down lab VMs at a specific tim
92
94
1. If you choose **Yes**, enter a webhook URL endpoint under **Webhook URL** or semicolon-separated email addresses under **Email address** to post or send the notification.
93
95
1. Select **Save**.
94
96
95
-
:::image type="content" source="./media/devtest-lab-set-lab-policy/auto-shutdown.png" alt-text="Screenshot showing Auto shutdown.":::
97
+
:::image type="content" source="./media/devtest-lab-set-lab-policy/auto-shutdown.png" alt-text="Screenshot showing Auto shutdown.":::
96
98
97
-
By default, autoshutdown applies to all lab VMs. If allowed by [autoshutdown policy](#autoshutdown-policy), lab users can override lab autoshutdown settings for their own lab VMs as follows:
99
+
By default, autoshutdown applies to all lab VMs. If allowed by [autoshutdown policy](#autoshutdown-policy), lab users can override lab autoshutdown settings for their own individual lab VMs as follows:
98
100
99
101
1. Select the VM from **My virtual machines** on the lab **Overview** page.
100
102
1. On the home page for the VM, select **Auto-shutdown** from the **Operations** section of the left navigation.
@@ -104,33 +106,33 @@ For more information about autoshutdown and sending notifications, see [Configur
104
106
<aname="set-autostart"></a>
105
107
### Autostart
106
108
107
-
Autostart policy helps you minimize waste by specifying a specific time of day and days of the week to start up lab VMs.
109
+
Autostart policy helps you minimize waste by specifying a specific time of day and days of the week to start up lab VMs. The default policy setting is **No**.
108
110
109
-
> [!NOTE]
111
+
> [!IMPORTANT]
110
112
> This policy isn't automatically applied to lab VMs. To apply this setting to VMs, open the VM's page and change its **Auto-start** setting.
111
113
112
114
1. On the lab's **Configuration and policies** page, select **Auto-start** from the left navigation.
113
115
1. Select **Yes** or **No** to enable or disable the policy.
114
116
1. If you select **Yes**, specify the **Scheduled start**, **Time zone**, and **Days of the week** to start up the lab VMs.
115
117
1. Select **Save**.
116
118
117
-
:::image type="content" source="./media/devtest-lab-set-lab-policy/auto-start.png" alt-text="Screenshot showing the Autostart selection.":::
119
+
:::image type="content" source="./media/devtest-lab-set-lab-policy/auto-start.png" alt-text="Screenshot showing the Autostart selection.":::
118
120
119
121
For more information and details about autostart policy, see [Start up lab virtual machines automatically](devtest-lab-auto-startup-vm.yml).
120
122
121
123
<aname="set-auto-shutdown-policy"></a>
122
124
### Autoshutdown policy
123
125
124
-
If you set autoshutdown for lab VMs, you can also set a policy to let lab users override the lab autoshutdown settings for their own VMs. You can set autoshutdown policy to allow lab users full control, partial control, or no control over their own VMs' autoshutdown activity.
126
+
If you set an autoshutdown schedule for lab VMs, you can also set a policy to let lab users override the lab autoshutdown settings for their own VMs. You can set autoshutdown policy to allow lab users full control, partial control, or no control over their own VMs' autoshutdown activity.
125
127
126
128
> [!IMPORTANT]
127
129
> Autoshutdown policy changes apply only to new lab VMs, not to already-existing VMs.
128
130
129
131
1. On the lab's **Configuration and policies** page, select **Auto shutdown policy** from the left navigation.
130
132
1. Select one of the following options:
131
133
132
-
-**User sets a schedule and can opt out**: Lab users can override or opt out of lab autoshutdown. Lab users can override the lab schedule, and they don't have to set any autoshutdown for their VMs. This setting is the default.
133
-
-**User sets a schedule and cannot opt out**: Lab users can override the lab schedule for their VMs, but they can't opt out of autoshutdown. This option ensures that every VM in the lab is on some autoshutdown schedule.
134
+
-**User sets a schedule and can opt out**: Lab users can override or opt out of lab autoshutdown. Lab users can override the lab schedule times, and they don't have to set any autoshutdown for their VMs. This setting is the default.
135
+
-**User sets a schedule and cannot opt out**: Lab users can override the lab shutdown schedule for their VMs, but they can't opt out of autoshutdown. This option ensures that every VM in the lab is on some autoshutdown schedule.
134
136
-**User has no control over the schedule set by lab administrator**: Lab users can't override or opt out of the lab autoshutdown schedule. They can set up autoshutdown notifications for their own VMs.
0 commit comments