Skip to content

Files

Latest commit

author
Christopher McClister
May 25, 2022
3844677 · May 25, 2022

History

History
81 lines (48 loc) · 6.5 KB

how-to-use-shared-image-gallery.md

File metadata and controls

81 lines (48 loc) · 6.5 KB
title description ms.topic ms.date
Use an Azure Compute Gallery in Azure Lab Services | Microsoft Docs
Learn how to configure a lab plan to use a compute gallery so that a user can share an image with other and another user can use the image to create a template VM in the lab.
how-to
11/13/2021

Use an Azure Compute Gallery in Azure Lab Services

An image contains the operating system, software applications, files, and settings that are installed on a VM. There are two types of images that you can use when you set up a new lab:

  • Azure Marketplace images that are prebuilt by Microsoft for use within Azure. These images have either Windows or Linux installed and may also include software applications. For example, the Data Science Virtual Machine image includes installed deep learning frameworks and tools.
  • Custom images that are created by your institution’s IT department and\or other educators. You can create both Windows and Linux custom images and have the flexibility to install Microsoft and 3rd party applications based on your unique needs. You also can add files, change application settings, and more.

This article shows how educators/lab admins can create and save a custom image from a template virtual machine to a compute gallery so that it can be used by others to create new labs.

Important

While using a Azure compute galleries, Azure Lab Services supports only images with less than 128 GB of OS Disk Space. Images with more than 128 GB of disk space or multiple disks will not be shown in the list of virtual machine images during lab creation.

Scenarios

Here are the couple of scenarios supported by this feature:

  • A lab plan admin attaches a compute gallery to the lab plan, and uploads an image to the compute gallery outside the context of a lab. Then, lab creators can use that image from the compute gallery to create labs.
  • A lab plan admin attaches a compute gallery to the lab plan. A lab creator (educator) saves the customized image of their lab to the compute gallery. Then, other lab creators can select this image from the compute gallery to create a template for their labs.

Prerequisites

Save an image to a compute gallery

After a compute gallery is attached, an educator can save an image to the compute gallery so that it can be reused by other educators.

  1. On the Template page for the lab, select Export to Azure Compute Gallery on the toolbar.

    Save image button

  2. On the Export to Azure Compute Gallery dialog, enter a name for the image, and then select Export.

    :::image type="content" source="./media/how-to-use-shared-image-gallery/export-to-shared-image-gallery-dialog.png" alt-text="Export to Azure Compute Gallery dialog":::

  3. You'll see a note telling you to go to the Azure port to see the progress of this operation. This operation can take sometime.

    Export in progress

After you save the image to the compute gallery, you can use that image from the gallery when creating another lab. You can also upload an image to the compute gallery outside the context of a lab. For more information, see:

Important

When you save a template image of a lab in Azure Lab Services to a compute gallery, the image is uploaded to the gallery as a specialized image. Specialized images keep machine-specific information and user profiles. You can still directly upload a generalized image to the gallery outside of Azure Lab Services.

Use a custom image from the compute gallery

An educator can pick a custom image available in the compute gallery for the template VM when creating a new lab. Educators can create a template VM based on both generalized and specialized images in Azure Lab Services.

Use virtual machine image from the gallery

Important

Azure Compute Gallery images will not show if they have been disabled or if the region of the lab plan is different than the gallery images.

For more information about replicating images, see replication in Azure Compute Gallery. For more information about disabling gallery images for a lab plan, see enable and disable images.

Re-save a custom image to compute gallery

After you've created a lab from a custom image in a compute gallery, you can make changes to the image using the template VM and reexport the image to compute gallery. When you reexport, you can either create a new image or to update the original image.

If you choose Create new image, a new image definition is created. Creating a new image allows you to save an entirely new custom image without changing the original custom image that already exists in compute gallery.

If instead you choose Update existing image, the original custom image's definition is updated with a new version. Lab Services automatically will use the most recent version the next time a lab is created using the custom image.

Next steps

To learn about how to set up a compute gallery by attaching and detaching it to a lab plan, see How to attach and detach a compute gallery.

To explore other options for bringing custom images to compute gallery outside of the context of a lab, see Recommended approaches for creating custom images.

For more information about compute galleries in general, see Azure Compute Gallery overview.