Skip to content

Commit d9da4e5

Browse files
modified sharedimageversion JSON values
1 parent c81a0c6 commit d9da4e5

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

articles/virtual-machines/linux/image-builder-json.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ The following JSON sets the source image as the latest image version for an imag
10131013
```json
10141014
"source": {
10151015
"type": "SharedImageVersion",
1016-
"imageVersionId": "/SharedGalleries/<galleryName>/Images/<imageName>/Versions/latest"
1016+
"imageVersionId": "<replace with resourceId of the image stored in the Direct Shared Gallery>"
10171017
},
10181018
```
10191019

@@ -1023,8 +1023,7 @@ The following JSON sets the source image as the latest image version for an imag
10231023
properties: {
10241024
source: {
10251025
type: 'SharedImageVersion'
1026-
imageVersionId: '/SharedGalleries/<galleryName>/Images/<imageName>/Versions/latest'
1027-
exactVersion: '<replace with exact ARM resource id of the image version>'
1026+
imageVersionId: '<replace with resourceId of the image stored in the Direct Shared Gallery>'
10281027
}
10291028
}
10301029
```
@@ -1284,13 +1283,12 @@ Sets the source image as an existing image version in an Azure Compute Gallery.
12841283
```bicep
12851284
source: {
12861285
type: 'SharedImageVersion',
1287-
imageVersionID: '/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Compute/galleries/<sharedImageGalleryName>/images/<imageDefinitionName/versions/<imageVersion>'
1286+
imageVersionID: '<replace with resourceId of the image stored in the Direct Shared Gallery>'
12881287
}
12891288
```
12901289

12911290
---
1292-
1293-
The `imageVersionId` should be the ResourceId of the image version. Use [az sig image-version list](/cli/azure/sig/image-version#az-sig-image-version-list) to list image versions.
1291+
- imageVersionId - ARM resource id of the image version. When image version name is 'latest', the version is evaluated when the image build takes place. The `imageVersionId` should be the `ResourceId` of the image version. Use [az sig image-version list](/cli/azure/sig/image-version#az-sig-image-version-list) to list image versions.
12941292

12951293
The following JSON sets the source image as the latest image version in a [Direct Shared Gallery](/azure/virtual-machines/shared-image-galleries?tabs=azure-cli#sharing).
12961294

@@ -1302,7 +1300,7 @@ The following JSON sets the source image as the latest image version in a [Direc
13021300
```json
13031301
source: {
13041302
"type": "SharedImageVersion",
1305-
"imageVersionId": "/SharedGalleries/<galleryName>/Images/<imageName>/Versions/latest"
1303+
"imageVersionId": "<replace with resourceId of the image stored in the Direct Shared Gallery>"
13061304
},
13071305
```
13081306

@@ -1311,10 +1309,9 @@ The following JSON sets the source image as the latest image version in a [Direc
13111309
```bicep
13121310
source: {
13131311
type: 'SharedImageVersion'
1314-
imageVersionId: '/SharedGalleries/<galleryName>/Images/<imageName>/Versions/latest'
1312+
imageVersionId: '<replace with resourceId of the image stored in the Direct Shared Gallery>'
13151313
}
13161314
```
1317-
- imageVersionId - ARM resource id of the image version. When image version name is 'latest', the version is evaluated when the image build takes place.
13181315
---
13191316

13201317
## Properties: stagingResourceGroup

0 commit comments

Comments
 (0)