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-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,11 @@ 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/26/2025
7
+
ms.date: 03/28/2025
8
8
ms.custom: UpdateFrequency2
9
9
10
-
#customer intent: As a lab user, I want to add artifacts to my VMs so I can use them to run scripts or commands, install tools or applications, or take other actions on my VMs.
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.
11
+
11
12
---
12
13
13
14
# Create a custom image for Azure DevTest Labs virtual machines from VHD files
@@ -48,9 +49,9 @@ To create a custom image for DevTest Labs from a VHD or VHDX file, follow these
48
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
51
51
-

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.":::
52
53
53
-
## Next steps
54
+
## Related content
54
55
55
56
-[Add a VM to your lab](devtest-lab-add-vm.md)
56
57
-[Compare custom images and formulas in DevTest Labs](devtest-lab-comparing-vm-base-image-types.md)
Copy file name to clipboardExpand all lines: articles/devtest-labs/devtest-lab-set-lab-policy.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,16 @@ 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/27/2025
7
+
ms.date: 03/28/2025
8
8
ms.custom: UpdateFrequency2
9
+
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.
9
11
---
10
12
11
13
# Manage lab policies in Azure DevTest Labs
12
14
13
-
This article describes how Azure DevTest Labs administrators can manage lab policies to control lab costs, minimize waste, and improve managability. Lab policies include:
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:
14
16
15
-
- Internal support
16
17
- Allowed virtual machine (VM) sizes
17
18
- Maximum VMs per user
18
19
- Maximum VMs per lab
@@ -22,7 +23,7 @@ This article describes how Azure DevTest Labs administrators can manage lab poli
22
23
23
24
## Prerequisites
24
25
25
-
**Contributor** or **Owner** level permissions to the lab.
26
+
**Contributor** or **Owner** level permissions in the lab.
26
27
27
28
## Set lab policies
28
29
@@ -34,6 +35,7 @@ On the **Configuration and policies** page, select the policy you want to config
34
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
37
38
+
<aname="set-allowed-virtual-machine-sizes"></a>
37
39
### Allowed virtual machine sizes
38
40
39
41
This policy specifies the VM sizes that users can create in the lab.
@@ -45,6 +47,7 @@ This policy specifies the VM sizes that users can create in the lab.
45
47
46
48
:::image type="content" source="./media/devtest-lab-set-lab-policy/allowed-vm-sizes.png" alt-text="Screenshot showing Allowed VM sizes.":::
47
49
50
+
<aname="set-virtual-machines-per-user"></a>
48
51
### Virtual machines per user
49
52
50
53
This policy specifies the maximum number of VMs that an individual lab user can claim or create.
@@ -98,6 +101,7 @@ By default, autoshutdown applies to all lab VMs. If allowed by [autoshutdown pol
98
101
99
102
For more information about autoshutdown and sending notifications, see [Configure autoshutdown for labs and VMs in DevTest Labs](devtest-lab-auto-shutdown.md).
100
103
104
+
<aname="set-autostart"></a>
101
105
### Autostart
102
106
103
107
Autostart policy helps you minimize waste by specifying a specific time of day and days of the week to start up lab VMs.
@@ -114,6 +118,7 @@ Autostart policy helps you minimize waste by specifying a specific time of day a
114
118
115
119
For more information and details about autostart policy, see [Start up lab virtual machines automatically](devtest-lab-auto-startup-vm.yml).
116
120
121
+
<aname="set-auto-shutdown-policy"></a>
117
122
### Autoshutdown policy
118
123
119
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.
Copy file name to clipboardExpand all lines: articles/devtest-labs/samples-powershell.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,31 @@
1
1
---
2
2
title: Azure PowerShell Samples
3
-
description: Use these Azure PowerShell scripts for DevTest Labs activities like adding lab users, creating and assigning custom lab roles, and allowing specific lab VM sizes and Marketplace images.
3
+
description: Use these Azure PowerShell scripts for DevTest Labs activities like adding lab users, creating custom lab roles, and allowing specific lab VM sizes and Marketplace images.
#customer intent: As a lab administrator, I want to run Azure PowerShell scripts to add users, roles, VM sizes, and Marketplace images, so I can easily customize the lab to meet our needs.
9
11
---
10
12
11
-
# Azure PowerShell samples for Azure Lab Services
13
+
# Azure PowerShell samples for Azure DevTest Labs
12
14
13
15
This article includes the following sample Azure PowerShell scripts for Azure DevTest Labs:
14
16
15
17
-[Add an external user to a lab](#add-an-external-user-to-a-lab)
16
-
-[Create a custom role in a lab](#create-a-custom-role-in-a-lab)
17
-
-[Set allowed virtual machine (VM) sizes for a lab](#set-allowed-virtual-machine-sizes)
18
+
-[Create and assign a custom role in a lab](#create-and-assign-a-custom-lab-user-role)
19
+
-[Set allowed virtual machine (VM) sizes for a lab](#set-allowed-vm-sizes)
18
20
-[Add Marketplace images to a lab](#add-a-marketplace-image-to-a-lab)
19
21
-[Create a custom image from a virtual hard drive (VHD)](#create-a-custom-image-from-a-vhd-file)
20
22
21
23
## Prerequisites
22
24
23
-
-Adding or assigning users or roles requires**Owner** role in a lab, or **Owner** or **User Access Administrator** role in the Azure subscription that contains the lab.
24
-
-Setting allowed lab VM sizes, adding a Marketplace image, or creating a custom image require at least **Contributor** role in the lab or the Azure subscription.
25
-
- Azure PowerShell. You can use [Azure Cloud Shell](/azure/cloud-shell/quickstart) or [install PowerShell locally](/powershell/azure/install-azure-powershell).
26
-
- In Cloud Shell, select the **PowerShell**experience.
25
+
-To add or assign users or roles:**Owner** role in a lab, or **Owner** or **User Access Administrator** role in the Azure subscription that contains the lab.
26
+
-To set allowed lab VM sizes, add a Marketplace image, or create a custom image: At least **Contributor** role in the lab or the Azure subscription.
27
+
-All scripts require Azure PowerShell. You can use [Azure Cloud Shell](/azure/cloud-shell/quickstart) or [install PowerShell locally](/powershell/azure/install-azure-powershell).
28
+
- In Cloud Shell, select the **PowerShell**environment.
27
29
- For a local PowerShell installation, run `Update-Module -Name Az` to get the latest version of Azure PowerShell, and run [Connect-AzAccount](/powershell/module/az.accounts/connect-azaccount) to sign in to Azure. If you have multiple Azure subscriptions, use `Set-AzContext -SubscriptionId "<SubscriptionId>"` to provide the subscription ID you want to use.
This sample PowerShell script creates a custom role that allows lab users to modify lab policies, and assigns the new role to an external user. The user to assign must be in the organization's Microsoft Entra ID.
64
+
This sample PowerShell script creates a custom role that allows lab users to modify lab policies, and assigns the new role to an external user. The user to assign must be in the organization's Microsoft Entra ID.
63
65
64
66
To use the script, replace the parameter values under the `# Values to change` comment with your own values. You can get the `subscriptionId`, `rgName`, and `labName` values from the lab's main page in the Azure portal.
This sample PowerShell script creates a custom image in DevTest Labs from a Windows VHD file. The script requires a VHD file to be uploaded to the Azure Storage account for the lab.
370
+
This sample PowerShell script creates a custom image in DevTest Labs from a VHD file. The script requires a Windows VHD file to be uploaded to the Azure Storage account for the lab.
369
371
370
372
To use the script, replace the parameter values under the `# Values to change` comment with your own values. You can get the `subscriptionId`, `labRg`, and `labName` values from the lab's main page in the Azure portal. Get the `vhdUri` value from the Azure Storage container where you uploaded the VHD file.
371
373
@@ -382,9 +384,9 @@ This script uses the following commands:
382
384
$subscriptionId = '<Azure subscription ID>'
383
385
$labRg = '<Lab resource group name>'
384
386
$labName = '<Lab name>'
385
-
$vhdUri = '<VHD URI>'
387
+
$vhdUri = '<URI for the uploaded VHD>'
386
388
$customImageName = '<Name for the custom image>'
387
-
$customImageDescription = '<Description for the custom image'
389
+
$customImageDescription = '<Description for the custom image>'
Copy file name to clipboardExpand all lines: articles/devtest-labs/tutorial-use-custom-lab.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,10 @@ description: Learn how to claim, unclaim, delete, and connect to a DevTest Labs
4
4
ms.topic: tutorial
5
5
ms.author: rosemalcolm
6
6
author: RoseHJM
7
-
ms.date: 03/26/2025
7
+
ms.date: 03/28/2025
8
8
ms.custom: UpdateFrequency2
9
9
10
-
#customer intent: As a lab user, I want to be able to claim ownership and connect to lab VMs so I can use available VMs to do my work.
10
+
#customer intent: As a lab user, I want to be able to claim ownership and connect to lab VMs, so I can use preconfigured VMs to do my work.
11
11
---
12
12
13
13
# Claim and connect to a DevTest labs VM
@@ -53,7 +53,7 @@ To connect to a VM, it must be running. An unclaimed claimable VM is stopped. Wh
53
53
54
54
:::image type="content" source="./media/tutorial-use-custom-lab/my-virtual-machines.png" alt-text="Screenshot of VM under My virtual machines.":::
55
55
56
-
1. If available, select **Connect via Bastion** from the context menu. In the **Connect via Bastion** pane, select whether to open the VM in a new window, enter the VM username and password, and then select **Connect**..
56
+
1. If available, select **Connect via Bastion** from the context menu. In the **Connect via Bastion** pane, select whether to open the VM in a new window, enter the VM username and password, and then select **Connect**.
57
57
1. If **Connect via Bastion** isn't available:
58
58
- For a Windows VM, select **Connect via RDP**, and follow instructions at [Connect to a Windows VM in your lab](connect-windows-virtual-machine.md).
59
59
- For a Linux VM, select **Connect via Azure CLI** or **Connect via Native SSH**, and follow instructions at [Connect to a Linux VM in your lab](connect-linux-virtual-machine.md).
@@ -81,7 +81,7 @@ After you're done using the VM, you can unclaim it so someone else can claim it,
81
81
82
82
## Delete a lab VM
83
83
84
-
When you're done using a VM, you can delete it unless someone else has claimed it. To delete an individual lab VM, follow these steps:
84
+
When you're done using a VM, you can delete it unless someone else claims it. To delete an individual lab VM, follow these steps:
85
85
86
86
1. Select the ellipsis **...** next to the VM in the **My virtual machines** list or on the **Claimable virtual machines** page, and select **Delete** from the context menu.
87
87
1. On the **Are you sure you want to delete it** page, select **Delete**.
0 commit comments