Skip to content

Commit ff1b0f7

Browse files
committed
couple of drafts
1 parent ed48581 commit ff1b0f7

11 files changed

+64
-74
lines changed
Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,57 @@
11
---
2-
title: Create custom image for Azure DevTest Labs VMs from VHD files
3-
description: Use a VHD file to create an Azure DevTest Labs virtual machine custom image in the Azure portal.
2+
title: Create custom images for lab VMs from VHD files
3+
description: Use the Azure portal to create an Azure DevTest Labs virtual machine (VM) custom image from a virtual hard disk (VHD) file.
44
ms.topic: how-to
55
ms.author: rosemalcolm
66
author: RoseHJM
7-
ms.date: 09/30/2023
7+
ms.date: 03/26/2025
88
ms.custom: UpdateFrequency2
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.
911
---
1012

1113
# Create a custom image for Azure DevTest Labs virtual machines from VHD files
1214

1315
[!INCLUDE [devtest-lab-create-custom-image-from-vhd-selector](../../includes/devtest-lab-create-custom-image-from-vhd-selector.md)]
1416

15-
In this article, you learn how to create a virtual machine (VM) custom image for Azure DevTest Labs by using a virtual hard drive (VHD) file.
17+
In this article, you learn how to create an Azure DevTest Labs virtual machine (VM) custom image by using a virtual hard disk (VHD) file. This article describes how to create a custom image in the Azure portal. You can also [use PowerShell to create a custom image](devtest-lab-create-custom-image-from-vhd-using-powershell.md).
1618

1719
[!INCLUDE [devtest-lab-custom-image-definition](../../includes/devtest-lab-custom-image-definition.md)]
1820

19-
This article describes how to create a custom image in the Azure portal. You can also [use PowerShell](devtest-lab-create-custom-image-from-vhd-using-powershell.md) to create a custom image.
20-
2121
[!INCLUDE [devtest-lab-upload-vhd-options](../../includes/devtest-lab-upload-vhd-options.md)]
2222

23-
## Create custom images for Azure DevTest Labs in Azure portal
24-
25-
To create a custom image from a VHD file in DevTest Labs in the Azure portal, follow these steps:
26-
27-
1. In the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040), go to the **Overview** page for the lab that has the uploaded VHD file.
23+
## Create the custom image
2824

29-
1. Select **Configuration and policies** in the left navigation.
30-
31-
1. On the **Configuration and policies** pane, select **Custom images** under **Virtual machine bases** in the left navigation.
25+
To create a custom image for DevTest Labs from a VHD or VHDX file, follow these steps:
3226

27+
1. In the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040), go to the lab that has the uploaded VHD file.
28+
1. On the lab **Overview** page, select **Configuration and policies** in the left navigation.
29+
1. On the **Configuration and policies** page, select **Custom images** under **Virtual machine bases** in the left navigation.
3330
1. On the **Custom images** page, select **Add**.
3431

35-
![Screenshot that shows the Custom image page with the Add button.](media/devtest-lab-create-template/add-custom-image.png)
36-
37-
1. On the **Add custom image** page:
38-
39-
- Enter a name for the custom image to display in the list of base images for creating a VM.
40-
- Enter an optional description to display in the base image list.
41-
- Under **OS type**, select whether the OS for the VHD and custom image is **Windows** or **Linux**.
42-
- If you choose **Windows**, select the checkbox if you ran *sysprep* on the machine before creating the VHD file.
43-
- If you choose **Linux**, select the checkbox if you ran *deprovision* on the machine before creating the VHD file.
44-
45-
1. Under **VHD**, select the uploaded VHD file for the custom image from the drop-down menu.
32+
:::image type="content" source="media/devtest-lab-create-template/add-custom-image.png" alt-text="Screenshot that shows the Custom image page with the Add button.":::
4633

47-
1. Optionally, enter a plan name, plan offer, and plan publisher if the VHD image isn't a licensed image published by Microsoft. If the image is a licensed image, these fields are pre-populated with the plan information.
34+
1. Fill out the **Custom image** page as follows:
4835

49-
- **Plan name:** Name of the non-Microsoft Marketplace image or SKU used to create the VHD image.
50-
- **Plan offer:** Product or offer name for the Marketplace image.
51-
- **Plan publisher:** Publisher of the Marketplace image.
36+
- **Name**: Enter a name for the custom image to display in the list of base images for creating a VM.
37+
- **Description**: Enter an optional description to display in the base image list.
38+
- **OS type**: Select whether the OS for the VHD and custom image is **Windows** or **Linux**.
39+
- If you choose **Windows**, select the checkbox if you ran **sysprep** on the machine when you created the VHD file.
40+
- If you choose **Linux**, select the checkbox if you ran **deprovision** on the machine when you created the VHD file.
41+
- **VHD Generation**: Select whether you have a **V1** (VHD) or **V2** (VHDX) file.
42+
- **VHD**: Select the uploaded VHD file for the custom image from the dropdown menu.
43+
- **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.
5244

5345
1. Select **OK**.
5446

55-
![Screenshot that shows the Add custom image page.](media/devtest-lab-create-template/create-custom-image.png)
47+
:::image type="content" source="media/devtest-lab-create-template/create-custom-image.png" alt-text="Screenshot that shows the Custom image page.":::
5648

57-
After creation, the custom image is stored in the lab's storage account. The custom image appears in the list of VM base images for the lab. Lab users can create new VMs based on the custom image.
49+
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.
5850

5951
![Screenshot that shows the Custom images available in the list of base images.](media/devtest-lab-create-template/custom-image-available-as-base.png)
6052

6153
## Next steps
6254

63-
- [Add a VM to your lab](./devtest-lab-add-vm.md)
55+
- [Add a VM to your lab](devtest-lab-add-vm.md)
6456
- [Compare custom images and formulas in DevTest Labs](devtest-lab-comparing-vm-base-image-types.md)
65-
- [Copying Custom Images between Azure DevTest Labs](https://www.visualstudiogeeks.com/blog/DevOps/How-To-Move-CustomImages-VHD-Between-AzureDevTestLabs#copying-custom-images-between-azure-devtest-labs)
57+
- [Copying Custom Images between Labs](https://www.visualstudiogeeks.com/blog/DevOps/How-To-Move-CustomImages-VHD-Between-AzureDevTestLabs#copying-custom-images-between-azure-devtest-labs)
-3.22 KB
Loading
7.93 KB
Loading
-8.13 KB
Loading
22.2 KB
Loading
-3.41 KB
Loading
-28.3 KB
Loading
433 Bytes
Loading
-13.1 KB
Loading
-7.72 KB
Loading

0 commit comments

Comments
 (0)