Skip to content

Commit 02836c5

Browse files
committed
Update recos for custom images for freshness
1 parent c39cbef commit 02836c5

File tree

1 file changed

+42
-29
lines changed

1 file changed

+42
-29
lines changed

articles/lab-services/approaches-for-custom-image-creation.md

Lines changed: 42 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,96 @@
11
---
2-
title: Recommended approaches for creating custom images for labs
3-
description: Describes approaches for creating custom images for labs.
4-
ms.date: 07/27/2021
2+
title: Recommendation for creating custom images
3+
titleSuffix: Azure Lab Services
4+
description: Describes approaches for creating custom virtual machine images for labs in Azure Lab Services.
5+
services: lab-services
6+
ms.service: lab-services
7+
author: ntrogh
8+
ms.author: nicktrog
9+
ms.date: 04/24/2023
510
ms.topic: conceptual
611
---
712

8-
# Recommended approaches for creating custom images
9-
This article describes the following recommended approaches for creating a custom image:
13+
# Recommended approaches for creating custom images for Azure Lab Services labs
14+
15+
This article describes recommended approaches for creating a custom image for Azure Lab Services labs. Learn how you can create a save a custom image from an existing lab template virtual machine, or import a virtual machine image from an Azure VM or physical lab environment.
1016

1117
- Create and save a custom image from a [lab's template virtual machine (VM)](how-to-create-manage-template.md).
1218
- Bring a custom image from outside of the context of a lab by using:
1319
- An [Azure VM](https://azure.microsoft.com/services/virtual-machines/).
1420
- A VHD in your physical lab environment.
1521

16-
## Save a custom image from a lab's template VM
22+
## Save a custom image from a lab template virtual machine
23+
24+
The easiest way to create a custom virtual machine image for labs is to export an existing lab template virtual machine in the Azure portal.
1725

18-
Using a lab's template VM to create and save a custom image is the simplest way to create an image because it's supported by using the Azure Lab Services portal. As a result, both IT departments and educators can create custom images by using a lab's template VM.
26+
For example, you can start to create a new lab with one of the Azure Marketplace images, and then install extra software applications and tooling in the [template VM](./how-to-create-manage-template.md) that are needed for a class. After you've finished setting up the template VM, you can save it in the [connected compute gallery](how-to-attach-detach-shared-image-gallery.md), for others to use for creating new labs.
1927

20-
For example, you can start with one of the Azure Marketplace images and then install the software applications and tooling that are needed for a class. After you've finished setting up the image, you can save it in the [connected compute gallery](how-to-attach-detach-shared-image-gallery.md) so that you and other educators can use the image to create new labs.
28+
You can use a lab's template VM to create either Windows or Linux custom images. For more information, see [Save an image to a compute gallery](how-to-use-shared-image-gallery.md#save-an-image-to-a-compute-gallery)
2129

2230
There are a few key points to be aware of with this approach:
2331

24-
- Lab Services automatically saves a *specialized* image when you export the image from the template VM. In most cases, specialized images are well suited for creating new labs because the image retains machine-specific information and user profiles. Using a specialized image helps to ensure that the installed software will run the same when you use the image to create new labs. If you need to create a *generalized* image, you must use one of the other recommended approaches in this article to create a custom image.
32+
- Azure Lab Services automatically saves a *specialized* image when you export the image from the template VM. In most cases, specialized images are well suited for creating new labs because the image retains machine-specific information and user profiles. Using a specialized image helps to ensure that the installed software runs the same when you use the image to create new labs. If you need to create a *generalized* image, you must use one of the other recommended approaches in this article to create a custom image.
2533

2634
You can create labs based on both generalized and specialized images in Azure Lab Services. For more information about the differences, see [Generalized and specialized images](../virtual-machines/shared-image-galleries.md#generalized-and-specialized-images).
2735

28-
- For more advanced scenarios with setting up your image, you might find it helpful to instead create an image outside of labs by using either an Azure VM or a VHD from your physical lab environment. Read the next sections for more information.
29-
30-
### Use a lab's template VM to save a custom image
31-
32-
You can use a lab's template VM to create either Windows or Linux custom images. For more information, see [Save an image to a compute gallery](how-to-use-shared-image-gallery.md#save-an-image-to-a-compute-gallery)
36+
- For more advanced scenarios with setting up your image, you might instead create an image outside of Azure Lab Services by using either an Azure VM or a VHD from your physical lab environment. For example, if you need to use virtual machine extensions.
3337

3438
## Bring a custom image from an Azure VM
3539

36-
Another approach is to use an Azure VM to set up a custom image. After you've finished setting up the image, you can save it to a compute gallery so that you and your colleagues can use the image to create new labs.
40+
Another approach to set up a custom image is to use an Azure VM. After you've finished setting up the image, you can save it to a compute gallery so that you can use the image to create new labs.
3741

3842
Using an Azure VM gives you more flexibility:
3943

40-
- You can create either [generalized or specialized](../virtual-machines/shared-image-galleries.md#generalized-and-specialized-images) images. Otherwise, if you use a lab's template VM to [export an image](how-to-use-shared-image-gallery.md) the image is always specialized.
41-
- You have access to more advanced features of an Azure VM that might be helpful for setting up an image. For example, you can use [extensions](../virtual-machines/extensions/overview.md) to do post-deployment configuration and automation. Also, you can access the VM's [boot diagnostics](../virtual-machines/boot-diagnostics.md) and [serial console](/troubleshoot/azure/virtual-machines/serial-console-overview).
44+
- You can create either [generalized or specialized](/azure/virtual-machines/shared-image-galleries#generalized-and-specialized-images) images. Otherwise, if you use a lab template VM to [export an image](how-to-use-shared-image-gallery.md) the image is always specialized.
4245

43-
Setting up an image by using an Azure VM is more complex. As a result, IT departments are typically responsible for creating custom images on Azure VMs.
46+
- You have access to more advanced features of an Azure VM that might be helpful for setting up an image. For example, you can use [extensions](/azure/virtual-machines/extensions/overview) to do post-deployment configuration and automation. Also, you can access the VM's [boot diagnostics](/azure/virtual-machines/boot-diagnostics) and [serial console](/troubleshoot/azure/virtual-machines/serial-console-overview).
47+
48+
The process for setting up an image by using an Azure VM is more complex. As a result, IT departments are typically responsible for creating custom images on Azure VMs.
4449

4550
### Use an Azure VM to set up a custom image
4651

47-
Here are the high-level steps to bring a custom image from an Azure VM:
52+
To create a custom image from an Azure virtual machine:
53+
54+
1. Create an [Azure VM](https://azure.microsoft.com/services/virtual-machines/) by using a Windows or Linux Azure Marketplace image.
4855

49-
1. Create an [Azure VM](https://azure.microsoft.com/services/virtual-machines/) by using a Windows or Linux Marketplace image.
5056
1. Connect to the Azure VM and install more software. You can also make other customizations that are needed for your lab.
51-
1. When you've finished setting up the image, [save the VM's image to a compute gallery](../virtual-machines/image-version.md). As part of this step, you'll also need to create the image's definition and version.
52-
1. After the custom image is saved in the gallery, you can use your image to create new labs.
5357

58+
1. When you've finished setting up the image, [save the VM image to a compute gallery](/azure/virtual-machines/image-version). As part of this step, you also need to create the image definition and version.
5459

55-
The steps vary depending on if you're creating a custom Windows or Linux image. Read the following articles for the detailed steps:
60+
1. After you save the custom image in the gallery, use your image to create new labs.
61+
62+
The steps might vary depending on if you're creating a custom Windows or Linux image. Read the following articles for the detailed steps:
5663

5764
- [Bring a custom Windows image from an Azure VM](how-to-bring-custom-windows-image-azure-vm.md)
5865
- [Bring a custom Linux image from an Azure VM](how-to-bring-custom-linux-image-azure-vm.md)
5966

6067
## Bring a custom image from a VHD in your physical lab environment
6168

62-
The third approach to consider is to bring a custom image from a VHD in your physical lab environment to a compute gallery. After the image is in a compute gallery, you and other educators can use the image to create new labs.
69+
Another approach is to import a custom image from a virtual hard drive (VHD) in your physical lab environment to an Azure compute gallery. After the image is in a compute gallery, you can use it to create new labs.
6370

64-
Here are a few reasons why you might want to use this approach:
71+
The reasons you might import a custom image from a physical environment are:
6572

6673
- You can create either [generalized or specialized](../virtual-machines/shared-image-galleries.md#generalized-and-specialized-images) images to use in your labs. Otherwise, if you use a [lab's template VM](how-to-use-shared-image-gallery.md) to export an image, the image is always specialized.
67-
- You can access resources that exist within your on-premises environment. For example, you might have large installation files in your on-premises environment that are too time consuming to copy to a lab's template VM.
74+
75+
- You can access resources that exist within your on-premises environment during the VM configuration. For example, you might have large installation files in your on-premises environment that are too time-consuming to copy to a lab template VM.
76+
6877
- You can upload images created by using other tools, such as [Microsoft Configuration Manager](/mem/configmgr/core/understand/introduction), so that you don't have to manually set up an image by using a lab's template VM.
6978

70-
Bringing a custom image from a VHD is the most advanced approach because you must ensure that the image is set up properly so that it works within Azure. As a result, IT departments are typically responsible for creating custom images from VHDs.
79+
Bringing a custom image from a VHD is the most advanced approach because you must ensure that the image is set up properly to function in Azure. As a result, IT departments are typically responsible for creating custom images from VHDs.
7180

7281
### Bring a custom image from a VHD
7382

74-
Here are the high-level steps to bring a custom image from a VHD:
83+
Follow these steps to import a custom image from a VHD:
7584

7685
1. Use [Windows Hyper-V](/virtualization/hyper-v-on-windows/about/) on your on-premises machine to create a Windows or Linux VHD.
86+
7787
1. Connect to the Hyper-V VM and install more software. You can also make other customizations that are needed for your lab.
88+
7889
1. When you've finished setting up the image, upload the VHD to create a [managed disk](../virtual-machines/managed-disks-overview.md) in Azure.
90+
7991
1. From the managed disk, create the [image's definition](../virtual-machines/shared-image-galleries.md#image-definitions) and version in a compute gallery.
80-
1. After the custom image is saved in the gallery, you can use the image to create new labs.
92+
93+
1. After you saved the custom image in the gallery, you can use the image to create new labs.
8194

8295
The steps vary depending on if you're creating a custom Windows or Linux image. Read the following articles for the detailed steps:
8396

0 commit comments

Comments
 (0)