Skip to content

Commit 8219892

Browse files
Merge pull request #288966 from RoseHJM/mdb-image-builder-update
MDB - Image builder update
2 parents f645bda + 95482a3 commit 8219892

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

articles/dev-box/how-to-customize-devbox-azure-image-builder.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,25 @@ ms.service: dev-box
77
ms.custom: devx-track-azurepowershell
88
author: RoseHJM
99
ms.author: rosemalcolm
10-
ms.date: 01/02/2024
10+
ms.date: 10/22/2024
1111
ms.topic: how-to
12+
ai-usage: ai-assisted
1213
---
1314

1415
# Configure a dev box by using Azure VM Image Builder and Microsoft Dev Box
1516

1617
In this article, you use Azure VM Image Builder to create a customized dev box in Microsoft Dev Box by using a template. The template includes a customization step to install Visual Studio Code (VS Code).
1718

18-
When your organization uses standardized virtual machine (VM) images, it can more easily migrate to the cloud and help ensure consistency in your deployments. Images ordinarily include predefined security, configuration settings, and any necessary software. Setting up your own imaging pipeline requires time, infrastructure, and many other details. With Azure VM Image Builder, you can create a configuration that describes your image. The service then builds the image and submits it to a dev box project.
19+
Using standardized virtual machine (VM) images helps you ensure consistent deployments as you migrate to the cloud. These images can include predefined security, configuration settings, and necessary software. Setting up an imaging pipeline can be time-consuming and complex. Azure VM Image Builder simplifies this process by allowing you to create a configuration for your image, which the service then builds and submits to a dev box project.
1920

20-
Although it's possible to create custom VM images by hand or by using other tools, the process can be cumbersome and unreliable. VM Image Builder, which is built on HashiCorp Packer, gives you the benefits of a managed service.
21+
Creating custom VM images manually or with other tools can be difficult and unreliable. VM Image Builder, which is built on HashiCorp Packer, offers the advantages of a managed service.
2122

22-
To reduce the complexity of creating VM images, VM Image Builder:
23+
To simplify VM image creation, VM Image Builder:
2324

24-
- Removes the need to use complex tooling, processes, and manual steps to create a VM image. VM Image Builder abstracts out all these details and hides Azure-specific requirements, such as the need to generalize the image (Sysprep). And it gives more advanced users the ability to override such requirements.
25-
26-
- Works with existing image build pipelines for a click-and-go experience. You can call VM Image Builder from your pipeline or use an Azure VM Image Builder service DevOps task.
27-
28-
- Fetches customization data from various sources, which removes the need to collect them all from one place.
29-
30-
- Integrates with Azure Compute Gallery, which creates an image management system for distributing, replicating, versioning, and scaling images globally. Additionally, you can distribute the same resulting image as a virtual hard disk or as one or more managed images, without having to rebuild them from scratch.
25+
- Eliminates the need for complex tools, processes, and manual steps. It abstracts these details and hides Azure-specific needs, like generalizing the image (Sysprep), while allowing advanced users to override if necessary.
26+
- Works with existing image build pipelines. You can call VM Image Builder from your pipeline or use an Azure VM Image Builder service DevOps task.
27+
- Gathers customization data from various sources, so you don't have to collect it all in one place.
28+
- Integrates with Azure Compute Gallery, creating an image management system for global distribution, replication, versioning, and scaling. You can distribute the same image as a virtual hard disk or managed images without rebuilding them.
3129

3230
> [!IMPORTANT]
3331
> Microsoft Dev Box supports only images that use the security type [Trusted Launch](/azure/virtual-machines/trusted-launch-portal?tabs=portal%2Cportal2) enabled.
@@ -43,7 +41,9 @@ To provision a custom image that you created by using VM Image Builder, you need
4341

4442
## Create a Windows image and distribute it to Azure Compute Gallery
4543

46-
The first step is to use Azure VM Image Builder and Azure PowerShell to create an image version in Azure Compute Gallery and then distribute the image globally. You can also do this task by using the Azure CLI.
44+
The first step is to use Azure VM Image Builder and Azure PowerShell to create an image in Azure Compute Gallery and distribute it globally.
45+
46+
The following example uses PowerShell. You can also use the Azure Command-Line Interface (CLI).
4747

4848
1. To use VM Image Builder, you need to register the features.
4949

@@ -101,7 +101,7 @@ The first step is to use Azure VM Image Builder and Azure PowerShell to create a
101101

102102
1. Create a user-assigned identity and set permissions on the resource group by running the following code in PowerShell.
103103

104-
VM Image Builder uses the provided user identity to inject the image into Azure Compute Gallery. The following example creates an Azure role definition with specific actions for distributing the image. The role definition is then assigned to the user identity.
104+
VM Image Builder uses the user identity you provide to store the image in Azure Compute Gallery. The following example creates an Azure role definition with specific actions for distributing the image. The role definition is then assigned to the user identity.
105105

106106
```powershell
107107
# Set up role definition names, which need to be unique
@@ -121,7 +121,7 @@ The first step is to use Azure VM Image Builder and Azure PowerShell to create a
121121

122122
1. Assign permissions for the identity to distribute the images.
123123

124-
Use this command to download an Azure role definition template, and then update it with the previously specified parameters:
124+
Use this command to download an Azure role definition template, and update it with the previously specified parameters:
125125

126126
```powershell
127127
$aibRoleImageCreationUrl="https://raw.githubusercontent.com/azure/azvmimagebuilder/master/solutions/12_Creating_AIB_Security_Roles/aibRoleImageCreation.json"
@@ -142,7 +142,7 @@ The first step is to use Azure VM Image Builder and Azure PowerShell to create a
142142

143143
## Create a gallery
144144

145-
To use VM Image Builder with Azure Compute Gallery, you need to have an existing gallery and image definition. VM Image Builder doesn't create the gallery and image definition for you.
145+
To use VM Image Builder with Azure Compute Gallery, make sure you have an existing gallery and image definition. VM Image Builder doesn't create the gallery and image definition for you.
146146

147147
1. Run the following commands to create a new gallery and image definition.
148148

@@ -310,11 +310,11 @@ To use VM Image Builder with Azure Compute Gallery, you need to have an existing
310310
311311
## Configure the gallery
312312
313-
After your custom image is provisioned in the gallery, you can configure the gallery to use the images in the dev center. For more information, see [Configure Azure Compute Gallery](./how-to-configure-azure-compute-gallery.md).
313+
When your custom image is stored in the gallery, you can configure the gallery to use the images in the dev center. For more information, see [Configure Azure Compute Gallery](./how-to-configure-azure-compute-gallery.md).
314314
315315
## Set up Microsoft Dev Box with a custom image
316316
317-
After the gallery images are available in the dev center, you can use the custom image with Microsoft Dev Box. For more information, see [Quickstart: Configure Microsoft Dev Box](./quickstart-configure-dev-box-service.md).
317+
When the gallery images are available in the dev center, you can use the custom image with Microsoft Dev Box. For more information, see [Quickstart: Configure Microsoft Dev Box](./quickstart-configure-dev-box-service.md).
318318
319319
## Related content
320320

0 commit comments

Comments
 (0)