Skip to content

Commit 7c5ce82

Browse files
Merge pull request #234130 from divargas-msft/patch-5
[Doc-a-thon] Updating image-builder.md
2 parents 78303fb + 5f7da73 commit 7c5ce82

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

articles/virtual-machines/windows/image-builder.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: In this article, you learn how to create a Windows VM by using VM I
44
author: kof-f
55
ms.author: kofiforson
66
ms.reviewer: cynthn
7-
ms.date: 04/23/2021
7+
ms.date: 04/11/2023
88
ms.topic: how-to
99
ms.service: virtual-machines
1010
ms.subservice: image-builder
@@ -27,11 +27,9 @@ In this article, you learn how to create a customized Windows image by using Azu
2727

2828
Use the following sample JSON template to configure the image: [helloImageTemplateWin.json](https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/quickquickstarts/0_Creating_a_Custom_Windows_Managed_Image/helloImageTemplateWin.json).
2929

30-
3130
> [!NOTE]
3231
> Windows users can run the following Azure CLI examples on [Azure Cloud Shell](https://shell.azure.com) by using Bash.
3332
34-
3533
## Register the features
3634

3735
To use VM Image Builder, you need to register the feature. Check your registration by running the following commands:
@@ -54,12 +52,10 @@ az provider register -n Microsoft.Storage
5452
az provider register -n Microsoft.Network
5553
```
5654

57-
5855
## Set variables
5956

6057
Because you'll be using some pieces of information repeatedly, create some variables to store that information:
6158

62-
6359
```azurecli-interactive
6460
# Resource group name - we're using myImageBuilderRG in this example
6561
imageResourceGroup='myWinImgBuilderRG'
@@ -76,6 +72,7 @@ Create a variable for your subscription ID:
7672
```azurecli-interactive
7773
subscriptionID=$(az account show --query id --output tsv)
7874
```
75+
7976
## Create the resource group
8077

8178
To store the image configuration template artifact and the image, use the following resource group:
@@ -92,7 +89,7 @@ VM Image Builder uses the provided [user-identity](../../active-directory/manage
9289

9390
Create a user-assigned identity so that VM Image Builder can access the storage account where the script is stored.
9491

95-
```bash
92+
```azurecli-interactive
9693
identityName=aibBuiUserId$(date +'%s')
9794
az identity create -g $imageResourceGroup -n $identityName
9895
@@ -250,12 +247,11 @@ When you're done, delete the resources you've created.
250247
```
251248

252249
1. Delete the image resource group.
253-
250+
254251
```azurecli-interactive
255252
az group delete -n $imageResourceGroup
256253
```
257254

258-
259255
## Next steps
260256

261257
To learn more about the components of the JSON file that this article uses, see the [VM Image Builder template reference](../linux/image-builder-json.md).

0 commit comments

Comments
 (0)