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
This article shows you how you can use the Azure Image Builder, and the Azure CLI, to create an image version in an [Azure Compute Gallery](../shared-image-galleries.md) (formerly known as Shared Image Gallery), then distribute the image globally. You can also do this using [Azure PowerShell](../windows/image-builder-gallery.md).
19
19
20
-
We will be using a sample .json template to configure the image. The .json file we are using is here: [helloImageTemplateforSIG.json](https://github.com/azure/azvmimagebuilder/blob/master/quickquickstarts/1_Creating_a_Custom_Linux_Shared_Image_Gallery_Image/helloImageTemplateforSIG.json).
20
+
We'll be using a sample .json template to configure the image. The .json file we're using is here: [helloImageTemplateforSIG.json](https://github.com/azure/azvmimagebuilder/blob/master/quickquickstarts/1_Creating_a_Custom_Linux_Shared_Image_Gallery_Image/helloImageTemplateforSIG.json).
21
21
22
22
To distribute the image to an Azure Compute Gallery, the template uses [sharedImage](image-builder-json.md#distribute-sharedimage) as the value for the `distribute` section of the template.
23
23
@@ -36,7 +36,7 @@ az provider show -n Microsoft.Network | grep registrationState
36
36
az provider show -n Microsoft.ContainerInstance | grep registrationState
37
37
```
38
38
39
-
If they do not say registered, run the following:
39
+
If they don't say registered, run the following:
40
40
41
41
```azurecli-interactive
42
42
az provider register -n Microsoft.VirtualMachineImages
@@ -49,7 +49,7 @@ az provider register -n Microsoft.ContainerInstance
49
49
50
50
## Set variables and permissions
51
51
52
-
We will be using some pieces of information repeatedly, so we will create some variables to store that information.
52
+
We'll be using some pieces of information repeatedly, so we'll create some variables to store that information.
53
53
54
54
Image Builder only supports creating custom images in the same Resource Group as the source managed image. Update the resource group name in this example to be the same resource group as your source managed image.
55
55
@@ -82,7 +82,7 @@ az group create -n $sigResourceGroup -l $location
82
82
83
83
## Create a user-assigned identity and set permissions on the resource group
84
84
85
-
Image Builder will use the [user-identity](../../active-directory/managed-identities-azure-resources/qs-configure-cli-windows-vm.md#user-assigned-managed-identity) provided to inject the image into the Azure Compute Gallery. In this example, you will create an Azure role definition that has the granular actions to perform distributing the image to the gallery. The role definition will then be assigned to the user-identity.
85
+
Image Builder uses the [user-identity](../../active-directory/managed-identities-azure-resources/qs-configure-cli-windows-vm.md#user-assigned-managed-identity) provided to inject the image into the Azure Compute Gallery. In this example, you'll create an Azure role definition that has the granular actions to perform distributing the image to the gallery. The role definition will then be assigned to the user-identity.
86
86
87
87
```azurecli-interactive
88
88
# create user assigned identity for image builder to access the storage account where the script is located
@@ -117,7 +117,7 @@ az role assignment create \
117
117
118
118
## Create an image definition and gallery
119
119
120
-
To use Image Builder with an Azure Compute Gallery, you need to have an existing gallery and image definition. Image Builder will not create the gallery and image definition for you.
120
+
To use Image Builder with an Azure Compute Gallery, you need to have an existing gallery and image definition. Image Builder won't create the gallery and image definition for you.
121
121
122
122
If you don't already have a gallery and image definition to use, start by creating them. First, create a gallery.
123
123
@@ -215,9 +215,9 @@ You should see the image was customized with a *Message of the Day* as soon as y
215
215
216
216
## Clean up resources
217
217
218
-
If you want to now try re-customizing the image version to create a new version of the same image, skip the next steps and go on to [Use Azure Image Builder to create another image version](image-builder-gallery-update-image-version.md).
218
+
If you want to now try recustomizing the image version to create a new version of the same image, skip the next steps and go on to [Use Azure Image Builder to create another image version](image-builder-gallery-update-image-version.md).
219
219
220
-
This will delete the image that was created, along with all of the other resource files. Make sure you are finished with this deployment before deleting the resources.
220
+
This deletes the image that was created, along with all of the other resource files. Make sure you're finished with this deployment before deleting the resources.
221
221
222
222
When deleting gallery resources, you need delete all of the image versions before you can delete the image definition used to create them. To delete a gallery, you first need to have deleted all of the image definitions in the gallery.
0 commit comments