Skip to content

Commit 689b865

Browse files
Merge pull request #293300 from anishtrakru/dtl-gen2vms
Generation 2 VMs in DevTest Labs
2 parents 631a4f7 + 3c23bf4 commit 689b865

File tree

10 files changed

+69
-7
lines changed

10 files changed

+69
-7
lines changed

articles/devtest-labs/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@
143143
href: devtest-lab-resize-vm.md
144144
- name: Redeploy a VM
145145
href: devtest-lab-redeploy-vm.md
146+
- name: Create a VM with Generation 2 base image
147+
href: devtest-lab-gen2-vm.md
146148
- name: Create and manage claimable VMs
147149
href: devtest-lab-add-claimable-vm.md
148150
- name: Configure secrets

articles/devtest-labs/devtest-lab-configure-marketplace-images.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,17 @@ Following these steps to specify which Azure Marketplace images are allowed when
1919
3. From the list of labs, select your lab.
2020
4. On the home page for the lab page, select **Configuration and policies**.
2121
5. On lab's **Configuration and policies** page under **Virtual Machine Bases**, select **Marketplace images**.
22-
6. Specify whether you want all the qualified Azure Marketplace images to be available for use as a base of a new VM. If you select **Yes**,
23-
then all the Azure Marketplace images that meet all the following criteria are allowed in the lab:
22+
6. Specify whether you want all the qualified Azure Marketplace images to be available for use as a base of a new VM. If you select **All Azure Marketplace images**, then all the Azure Marketplace images that meet all the following criteria are allowed in the lab:
2423

2524
* The image creates a single VM, **and**
2625
* The image uses Azure Resource Manager to provision VMs, **and**
2726
* The image doesn't require purchasing an extra licensing plan
2827

29-
If you want no images to be allowed, or you want to specify which images can be used, select **No**.
28+
If you want no images to be allowed, or you want to specify which images can be used, select **Selected Azure Marketplace images**.
3029

3130
![Option to allow all Marketplace images to be used as base images for VMs](./media/devtest-lab-configure-marketplace-images/allow-all-marketplace-images.png)
32-
7. If you select **No** to the previous step, the **Allowed images/Select all** checkbox is enabled.
33-
You can use this option together with the search box to quickly select or deselect all the items displayed in the list.
31+
7. If you select **Selected Azure Marketplace images** in the previous step, the list of available marketplace images and a search box will be displayed to you on the same page.
32+
You can use the search box to quickly search for images you are interested in. You can use the checkbox available in the first column in each row to select or deselect that particular image. To select or deselect all the items displayed in the list simultaneously, please use the first checkbox provided at the top of the checkbox column and just below the searchbar.
3433
* Select the Azure Marketplace images you want to allow for VM creation individually by checking each image's corresponding checkbox.
3534
* Select nothing from the list if you don't want to allow any Azure Marketplace images to be used in the lab.
3635

@@ -41,8 +40,7 @@ Following these steps to specify which Azure Marketplace images are allowed when
4140
If you aren't able to find a specific image to enable for the lab, follow these steps:
4241

4342
- Check to see if you can view the image while creating a compute VM.
44-
- The image may not be available in the type of the subscription you use. Check with the subscription administrator for the type of the subscription (for example: MSDN, free, pay-as-you-go, and so on.).
45-
- Support for Gen 2 images in DevTest Labs is limited. If both Gen 1 and Gen 2 versions are available for an image, DevTest Labs shows only the Gen 1 version of the image when creating a VM. Workaround is to create a custom Gen 2 image outside the lab and use it to create a VM. If there's only Gen 2 version of the image available, it's supported and shown in the list by DevTest Labs.
43+
- The image may not be available in the type of the subscription you use. Check with the subscription administrator for the type of the subscription (for example: MSDN, free, pay-as-you-go, and so on.).
4644

4745

4846

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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+
> [!IMPORTANT]
20+
> The enhanced support for **Generation 2 VMs** is currently in preview in Azure DevTest Labs. For more information about the preview status, see the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/). The document defines legal terms that apply to Azure features that are in beta, in preview, or otherwise not yet released into general availability.
21+
22+
## Create lab virtual machines with a Generation 2 base image
23+
24+
### Prerequisite
25+
26+
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).
27+
28+
### Create a VM using Generation 2 base image
29+
30+
1. In the [Azure portal](https://portal.azure.com), go to the **Overview** page for the lab.
31+
32+
1. On the lab **Overview** page, select **Add**.
33+
34+
:::image type="content" source="./media/devtest-lab-add-vm/portal-lab-add-vm.png" alt-text="Screenshot of lab overview page showing add button." lightbox="./media/devtest-lab-add-vm/portal-lab-add-vm.png":::
35+
36+
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.
37+
38+
:::image type="content" source="./media/devtest-lab-gen2-vm/dev-test-lab-gen-2-images.png" alt-text="Screenshot of list of available base images." lightbox="./media/devtest-lab-gen2-vm/dev-test-lab-gen-2-images.png":::
39+
40+
1. On the **Basics Settings** tab of the **Create lab resource** screen, provide the following information:
41+
42+
- **Virtual machine name**: Keep the autogenerated name, or enter another unique VM name.
43+
- **User name**: Keep the user name, or enter another user name to grant administrator privileges on the VM.
44+
- **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).
45+
- **Password**: If you don't choose to use a secret, enter a VM password between 8 and 123 characters long.
46+
- **Save as default password**: Select this checkbox to save the password in the Key Vault associated with the lab.
47+
- **Virtual machine size**: Keep the default value for the base, or select **Change Size** to select different sizes.
48+
- **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.
49+
- **OS disk type**: Keep the default value for the base, or select a different option from the dropdown list.
50+
- **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.
51+
52+
:::image type="content" source="./media/devtest-lab-add-vm/portal-lab-vm-basic-settings.png" alt-text="Screenshot of virtual machine basic settings page." lightbox="./media/devtest-lab-add-vm/portal-lab-vm-basic-settings.png":::
53+
54+
1. After you configure all settings, on the **Basic Settings** tab of the **Create lab resource** screen, select **Create** to deploy the VM.
55+
56+
During VM deployment, you can select the **Notifications** icon at the top of the screen to see progress. Creating a VM takes a while.
57+
58+
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.

articles/devtest-labs/devtest-lab-hibernate-vm.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ ms.custom: UpdateFrequency2
1212

1313
As an Azure DevTest Labs lab owner and user, you can Hibernate the virtual machines (VMs) in your lab. Hibernation allows applications and processes that were previously running in your VM resume from the state prior to hibernation. When you hibernate a machine, Azure stores the memory contents of the VM in the OS disk and then deallocates the VM. When the VM is started again from its hibernation state, the memory contents are transferred from the OS disk back into memory. Once a VM is placed in a hibernated state, you aren't charged for the compute cost of the VM, just like how you aren't charged for it in a stopped (deallocated) state. You're only charged for the storage (OS disk, data disks) and networking resources (IPs, etc.) attached to the VM.
1414

15+
> [!IMPORTANT]
16+
> The **Hibernation of VMs** feature is currently in preview in Azure DevTest Labs. For more information about the preview status, see the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/). The document defines legal terms that apply to Azure features that are in beta, in preview, or otherwise not yet released into general availability.
17+
1518
Hibernate is an effective cost management feature for:
1619
- Scenarios where the VMs don't need to run 24/7.
1720
- Scenarios where you don’t want to lose the state of the applications and processes on your VM when it is deallocated.
-19 KB
Loading
46.3 KB
Loading
420 KB
Loading
218 KB
Loading
82.2 KB
Loading

articles/devtest-labs/tutorial-create-custom-lab.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ To add a VM to the lab, follow these steps. For more information, see [Create la
8282
|**Password**|If you don't use a secret, enter a VM password between 8 and 123 characters long.|
8383
|**Save as default password**|Select this checkbox to save the password in the Key Vault associated with the lab.|
8484
|**Virtual machine size**|Keep the default value for the base, or select **Change Size** to select a different size.|
85+
|**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.|
8586
|**OS disk type**|Keep the default value for the base, or select a different option from the dropdown list.|
8687
|**Artifacts**|Optionally, select **Add or Remove Artifacts** to [select and configure artifacts](devtest-lab-add-vm.md#add-artifacts-during-installation) to add to the VM.|
8788

0 commit comments

Comments
 (0)