Skip to content

Files

Latest commit

 

History

History
51 lines (32 loc) · 3.33 KB

how-to-bring-custom-windows-image-azure-vm.md

File metadata and controls

51 lines (32 loc) · 3.33 KB
title description ms.date ms.topic
How to bring a Windows custom image from an Azure virtual machine
Describes how to bring a Windows custom image from an Azure virtual machine.
07/27/2021
how-to

Bring a Windows custom image from an Azure virtual machine

The steps in this article show how to import a custom image that starts from an Azure virtual machine (VM). With this approach, you set up an image on an Azure VM and import the image into a compute gallery so that it can be used within Azure Lab Services. Before you use this approach for creating a custom image, read Recommended approaches for creating custom images to decide the best approach for your scenario.

Prerequisites

You'll need permission to create an Azure VM in your school's Azure subscription to complete the steps in this article.

Prepare a custom image on an Azure VM

  1. Create an Azure VM by using the Azure portal, PowerShell, the Azure CLI, or an Azure Resource Manager template.

    • When you specify the disk settings, ensure the disk's size is not greater than 128 GB.
  2. Install software and make any necessary configuration changes to the Azure VM's image.

  3. Optionally, you can generalize the image. Run SysPrep if you need to create a generalized image. Otherwise, if you're creating a specialized image, you can skip to the next step.

    Create a specialized image if you want to maintain machine-specific information and user profiles. For more information about the differences between generalized and specialized images, see Generalized and specialized images.

Import the custom image into a compute gallery

  1. In a compute gallery, create an image definition or choose an existing image definition.

    • Choose Gen 1 for the VM generation.
    • Choose whether you're creating a specialized or generalized image for the Operating system state.

    For more information about the values you can specify for an image definition, see Image definitions.

    You can also choose to use an existing image definition and create a new version for your custom image.

  2. Create an image version.

    • The Version number property uses the following format: MajorVersion.MinorVersion.Patch.
    • For the Source, select Disks and/or snapshots from the dropdown list.
    • For the OS disk property, choose your Azure VM's disk that you created in previous steps.

Create a lab

Create the lab in Lab Services, and select the custom image from the compute gallery.

Next steps