|
1 | 1 | ---
|
2 |
| -title: Create an Azure DevTest Labs custom image from a VM |
3 |
| -description: Learn how to create a custom image in Azure DevTest Labs from a provisioned VM using the Azure portal |
| 2 | +title: Create a custom image from a lab VM |
| 3 | +description: Learn how to create a custom image from a provisioned virtual machine in Azure DevTest Labs by using the Azure portal. |
4 | 4 | ms.topic: how-to
|
5 |
| -ms.date: 06/26/2020 |
| 5 | +ms.date: 02/15/2022 |
6 | 6 | ---
|
7 | 7 |
|
8 | 8 | # Create a custom image from a VM
|
9 | 9 |
|
| 10 | +This article describes how to create a custom image from a provisioned Azure DevTest Labs virtual machine (VM). The custom image includes the OS disk and all the data disks attached to the VM. Lab users can use the custom image to create identical provisioned lab VMs. |
| 11 | + |
10 | 12 | [!INCLUDE [devtest-lab-custom-image-definition](../../includes/devtest-lab-custom-image-definition.md)]
|
11 | 13 |
|
12 | 14 | ## Step-by-step instructions
|
13 | 15 |
|
14 |
| -You can create a custom image from a provisioned VM, and afterwards use that custom image to create identical VMs. The following steps illustrate how to create a custom image from a VM: |
| 16 | +To create a custom image from a lab VM, take the following steps: |
15 | 17 |
|
16 |
| -1. Sign in to the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040). |
| 18 | +1. In the [Azure portal](https://go.microsoft.com/fwlink/p/?LinkID=525040), on your lab's **Overview** page, select the VM you want to use from the list under **My virtual machines**. |
17 | 19 |
|
18 |
| -1. Select **All services**, and then select **DevTest Labs** from the list. |
| 20 | + :::image type="content" source="./media/devtest-lab-create-custom-image-vm/overview-page.png" alt-text="Screenshot that shows a V M selected on a lab's Overview page."::: |
19 | 21 |
|
20 |
| -1. From the list of labs, select the desired lab. |
| 22 | +1. On the VM's **Overview** page, select **Create custom image** under **Operations** in the left navigation. |
21 | 23 |
|
22 |
| -1. On the lab's main pane, select **My virtual machines**. |
23 |
| - |
24 |
| -1. On the **My virtual machines** pane, select the VM from which you want to create the custom image. |
| 24 | +1. On the **Create custom image** page, enter a **Name** and optional **Description** for the custom image. |
25 | 25 |
|
26 |
| -1. On the VM's management pane, select **Create custom image** under **OPERATIONS**. |
| 26 | +1. Under **Image preparation**, select one of the following options: |
27 | 27 |
|
28 |
| - :::image type="content" source="./media/devtest-lab-create-template/create-custom-image.png" alt-text="Create custom image menu item"::: |
29 |
| -1. On the **Custom image** pane, enter a name and description for your custom image. This information is displayed in the list of bases when you create a VM. The custom image will include the OS disk and all the data disks attached to the virtual machine. |
| 28 | + - **I have not generalized this virtual machine** if you haven't run sysprep and don't want to run sysprep when creating the custom image |
| 29 | + - **I have already generalized this virtual machine** if you already ran sysprep on the VM |
| 30 | + - **Generalize this virtual machine (Run sysprep)** if you haven't run sysprep and want sysprep to be run on the VM when creating the custom image. |
30 | 31 |
|
31 |
| - :::image type="content" source="./media/devtest-lab-create-template/create-custom-image-blade.png" alt-text="Create custom image page"::: |
32 |
| -1. Select whether sysprep was run on the VM. If the sysprep was not run on the VM, specify whether you want sysprep to be run on the VM when the custom image is created. |
33 |
| -1. Select **OK** when finished to create the custom image. |
| 32 | +1. Select **OK**. |
34 | 33 |
|
35 |
| - After a few minutes, the custom image is created and is stored inside the lab’s storage account. When a lab user wants to create a new VM, the image is available in the list of base images. |
| 34 | + :::image type="content" source="./media/devtest-lab-create-custom-image-vm/create-custom-image.png" alt-text="Screenshot that shows the Create custom image selection on a V M's Overview page."::: |
36 | 35 |
|
37 |
| - :::image type="content" source="./media/devtest-lab-create-template/custom-image-available-as-base.png" alt-text="custom image available in list of base images"::: |
| 36 | +The custom image is created and stored in the lab's storage account. The image is available in the list of base images for creating a new lab VM. |
38 | 37 |
|
| 38 | +:::image type="content" source="./media/devtest-lab-create-custom-image-vm/custom-image-available-as-base.png" alt-text="Screenshot that shows custom images available in the list of VM base images."::: |
39 | 39 |
|
40 | 40 | ## Next steps
|
41 | 41 |
|
42 | 42 | - [Add a VM to your lab](devtest-lab-add-vm.md)
|
| 43 | +- [Create a custom image from a VHD file](devtest-lab-create-template.md) |
| 44 | +- [Compare custom images and formulas in DevTest Labs](devtest-lab-comparing-vm-base-image-types.md) |
| 45 | +- [Create a custom image factory in Azure DevTest Labs](image-factory-create.md) |
0 commit comments