Skip to content

Commit 851fc44

Browse files
committed
Generation 2 VMs for DevTest Labs
1 parent 5557629 commit 851fc44

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: Generation 2 VMs in Azure DevTest Labs
3+
description: Learn how to use Generation 2 virtual machines (VMs) in Azure DevTest Labs.
4+
ms.topic: how-to
5+
ms.author: anishtrakru
6+
author: RoseHJM
7+
ms.date: 01/20/2025
8+
ms.custom: UpdateFrequency2
9+
---
10+
11+
# Generation 2 VMs in Azure DevTest Labs
12+
13+
Azure DevTest Labs allows you to choose between Generation 1 and Generation 2 version of the same marketplace image while creating a VM using Azure DevTest Labs portal. Generation 2 Virtual Machines (VMs) support key capabilities that are not supported in Generation 1 VMs such as increased memory, Intel Software Guard Extensions (Intel SGX), and virtualized persistent memory (vPMEM). Generation 2 VMs might have improved boot and installation times.
14+
15+
For a VM instance to be a Generation 2 VM, it must use the specific Generation 2 base image and its VM size must support generation 2. To learn more about Generation 2 VMs on Azure, the series of VMs that support Generation 2 images, and other limitations, please visit [Support for Generation 2 VMs on Azure](https://learn.microsoft.com/azure/virtual-machines/generation-2)
16+
17+
This article explains how to use Generation 2 images in Azure DevTest Labs.
18+
19+
## Create lab virtual machines with a Generation 2 base image
20+
21+
### Prerequisite
22+
23+
You need at least [user](devtest-lab-add-devtest-user.md#devtest-labs-user) access to a lab in DevTest Labs. For more information about creating labs, see [Create a lab in the Azure portal](devtest-lab-create-lab.md).
24+
25+
### Create a VM using Generation 2 base image
26+
27+
1. In the [Azure portal](https://portal.azure.com), go to the **Overview** page for the lab.
28+
29+
1. On the lab **Overview** page, select **Add**.
30+
31+
:::image type="content" source="./media/devtest-lab-add-vm/portal-lab-add-vm.png" alt-text="Lab overview page showing add button.":::
32+
33+
1. On the **Choose a base** page, select a Generation 2 image for the VM. The **Generation** column in the list of images displays whether it is a Generation 1 or Generation 2 image.
34+
35+
:::image type="content" source="./media/devtest-lab-gen2-vm/devtest-lab-gen2-images.png" alt-text="List of available base images.":::
36+
37+
1. On the **Basics Settings** tab of the **Create lab resource** screen, provide the following information:
38+
39+
- **Virtual machine name**: Keep the autogenerated name, or enter another unique VM name.
40+
- **User name**: Keep the user name, or enter another user name to grant administrator privileges on the VM.
41+
- **Use a saved secret**: Select this checkbox to use a secret from Azure Key Vault instead of a password to access the VM. If you select this option, under **Secret**, select the secret to use from the dropdown list. For more information, see [Store secrets in a key vault](devtest-lab-store-secrets-in-key-vault.md).
42+
- **Password**: If you don't choose to use a secret, enter a VM password between 8 and 123 characters long.
43+
- **Save as default password**: Select this checkbox to save the password in the Key Vault associated with the lab.
44+
- **Virtual machine size**: Keep the default value for the base, or select **Change Size** to select different sizes.
45+
- **Hibernation**: Select **Enabled** to enable hibernation for this virtual machine, or select **Disabled** to disable hibernation for this virtual machine. If you enable Hibernation, you also must select **Public IP** in the Advanced settings as Private and Shared IP are currently not supported if Hibernation is enabled.
46+
- **OS disk type**: Keep the default value for the base, or select a different option from the dropdown list.
47+
- **Artifacts**: This field shows the number of artifacts already configured for this VM base. Optionally, select **Add or Remove Artifacts** to select and configure artifacts to add to the VM.
48+
49+
:::image type="content" source="./media/devtest-lab-add-vm/portal-lab-vm-basic-settings.png" alt-text="Virtual machine basic settings page.":::
50+
51+
1. After you configure all settings, on the **Basic Settings** tab of the **Create lab resource** screen, select **Create** to deploy the VM.
52+
53+
During VM deployment, you can select the **Notifications** icon at the top of the screen to see progress. Creating a VM takes a while.
54+
55+
When the deployment is complete, if you kept yourself as VM owner, the VM appears under **My virtual machines** on the lab **Overview** page. To connect to the VM, select it from the list, and then select **Connect** on the VM's **Overview** page. If the VM is stopped, select **Start** first to start the VM.

0 commit comments

Comments
 (0)