You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/tutorial-custom-images.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
1
---
2
2
title: Tutorial - Create custom VM images with the Azure CLI
3
3
description: In this tutorial, you learn how to use the Azure CLI to create a custom virtual machine image in Azure
4
-
author: cynthn
4
+
author: mattmcinnes
5
5
ms.service: virtual-machines
6
6
ms.subservice: gallery
7
7
ms.topic: tutorial
8
8
ms.workload: infrastructure
9
-
ms.date: 05/04/2020
10
-
ms.author: cynthn
9
+
ms.date: 01/25/2023
10
+
ms.author: mattmcinnes
11
11
ms.custom: mvc, devx-track-azurecli
12
-
ms.reviewer: mimckitt
12
+
ms.reviewer: cynthn
13
13
14
14
#Customer intent: As an IT administrator, I want to learn about how to create custom VM images to minimize the number of post-deployment configuration tasks.
15
15
---
@@ -30,21 +30,21 @@ Custom images are like marketplace images, but you create them yourself. Custom
30
30
31
31
This tutorial uses the CLI within the [Azure Cloud Shell](../../cloud-shell/overview.md), which is constantly updated to the latest version. To open the Cloud Shell, select **Try it** from the top of any code block.
32
32
33
-
If you choose to install and use the CLI locally, this tutorial requires that you are running the Azure CLI version 2.35.0 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI](/cli/azure/install-azure-cli).
33
+
If you choose to install and use the CLI locally, this tutorial requires that you're running the Azure CLI version 2.35.0 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI](/cli/azure/install-azure-cli).
34
34
35
35
## Overview
36
36
37
37
An [Azure Compute Gallery](../shared-image-galleries.md) simplifies custom image sharing across your organization. Custom images are like marketplace images, but you create them yourself. Custom images can be used to bootstrap configurations such as preloading applications, application configurations, and other OS configurations.
38
38
39
-
The Azure Compute Gallery lets you share your custom VM images with others. Choose which images you want to share, which regions you want to make them available in, and who you want to share them with.
39
+
The Azure Compute Gallery lets you share your custom VM images with others. Choose which images you want to share, which regions you want them to be available in, and who you want to share them with.
40
40
41
41
The Azure Compute Gallery feature has multiple resource types:
The steps below detail how to take an existing VM and turn it into a reusable custom image that you can use to create new VM instances.
47
+
The following steps show how to take an existing VM and turn it into a reusable custom image that you can use to create new VM instances.
48
48
49
49
To complete the example in this tutorial, you must have an existing virtual machine. If needed, you can see the [CLI quickstart](quick-create-cli.md) to create a VM to use for this tutorial. When working through the tutorial, replace the resource names where needed.
50
50
@@ -58,7 +58,7 @@ To open the Cloud Shell, just select **Try it** from the upper right corner of a
58
58
59
59
A gallery is the primary resource used for enabling image sharing.
60
60
61
-
Allowed characters for gallery name are uppercase or lowercase letters, digits, dots, and periods. The gallery name cannot contain dashes. Gallery names must be unique within your subscription.
61
+
Allowed characters for gallery name are uppercase or lowercase letters, digits, dots, and periods. The gallery name can't contain dashes. Gallery names must be unique within your subscription.
62
62
63
63
Create a gallery using [az sig create](/cli/azure/sig#az-sig-create). The following example creates a resource group named gallery named *myGalleryRG* in *East US*, and a gallery named *myGallery*.
64
64
@@ -85,7 +85,7 @@ Copy the ID of your VM to use later.
85
85
86
86
## Create an image definition
87
87
88
-
Image definitions create a logical grouping for images. They are used to manage information about the image versions that are created within them.
88
+
Image definitions create a logical grouping for images. They're used to manage information about the image versions that are created within them.
89
89
90
90
Image definition names can be made up of uppercase or lowercase letters, digits, dots, dashes, and periods.
91
91
@@ -115,7 +115,7 @@ Create an image version from the VM using [az sig image-version create](/cli/azu
115
115
116
116
Allowed characters for image version are numbers and periods. Numbers must be within the range of a 32-bit integer. Format: *MajorVersion*.*MinorVersion*.*Patch*.
117
117
118
-
In this example, the version of our image is *1.0.0* and we are going to create 2 replicas in the *West Central US* region, 1 replica in the *South Central US* region and 1 replica in the *East US 2* region using zone-redundant storage. The replication regions must include the region the source VM is located.
118
+
In this example, the version of our image is *1.0.0* and we're going to create two replicas in the *West Central US* region, one replica in the *South Central US* region and one replica in the *East US 2* region using zone-redundant storage. The replication regions must include the region the source VM is located.
119
119
120
120
Replace the value of `--managed-image` in this example with the ID of your VM from the previous step.
121
121
@@ -139,11 +139,11 @@ az sig image-version create \
139
139
140
140
## Create the VM
141
141
142
-
Create the VM using [az vm create](/cli/azure/vm#az-vm-create) using the --specialized parameter to indicate the image is a specialized image.
142
+
Create the VM using [az vm create](/cli/azure/vm#az-vm-create) using the `--specialized` parameter to indicate the image is a specialized image.
143
143
144
144
Use the image definition ID for `--image` to create the VM from the latest version of the image that is available. You can also create the VM from a specific version by supplying the image version ID for `--image`.
145
145
146
-
In this example, we are creating a VM from the latest version of the *myImageDefinition* image.
146
+
In this example, we're creating a VM from the latest version of the *myImageDefinition* image.
147
147
148
148
```azurecli
149
149
az group create --name myResourceGroup --location eastus
@@ -179,7 +179,7 @@ For more information about how to share resources using Azure RBAC, see [Add or
179
179
180
180
## Azure Image Builder
181
181
182
-
Azure also offers a service, built on Packer, [Azure VM Image Builder](../image-builder-overview.md). Simply describe your customizations in a template, and it will handle the image creation.
182
+
Azure also offers a service, built on Packer, [Azure VM Image Builder](../image-builder-overview.md). Describe your customizations in a template, and it will handle the image creation.
0 commit comments