Skip to content

Commit 37efac1

Browse files
revised sharedimageversion JSON examples and removed uneeded JSON examples above versioning section
1 parent 0b4b9b2 commit 37efac1

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

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

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,29 +1006,6 @@ Distribute properties for galleries:
10061006
> [!NOTE]
10071007
> If the image template and referenced `image definition` aren't in the same location, you'll see additional time to create images. Image Builder currently doesn't have a `location` parameter for the image version resource, we take it from its parent `image definition`. For example, if an image definition is in `westus` and you want the image version replicated to `eastus`, a blob is copied to `westus`, an image version resource in `westus` is created, and then replicate to `eastus`. To avoid the additional replication time, ensure the `image definition` and image template are in the same location.
10081008
1009-
The following JSON sets the source image as the latest image version for an image stored in an Azure Compute Gallery.
1010-
1011-
# [JSON](#tab/json)
1012-
1013-
```json
1014-
"source": {
1015-
"type": "SharedImageVersion",
1016-
"imageVersionId": "<replace with resourceId of the image stored in the Direct Shared Gallery>"
1017-
},
1018-
```
1019-
1020-
# [Bicep](#tab/bicep)
1021-
1022-
```bicep
1023-
properties: {
1024-
source: {
1025-
type: 'SharedImageVersion'
1026-
imageVersionId: '<replace with resourceId of the image stored in the Direct Shared Gallery>'
1027-
}
1028-
}
1029-
```
1030-
1031-
---
10321009

10331010

10341011

@@ -1274,7 +1251,7 @@ Sets the source image as an existing image version in an Azure Compute Gallery.
12741251
```json
12751252
"source": {
12761253
"type": "SharedImageVersion",
1277-
"imageVersionID": "<replace with resourceId of the image stored in the Direct Shared Gallery>"
1254+
"imageVersionID": "/subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.Compute/galleries/<sharedImageGalleryName>/images/<imageDefinitionName/versions/<imageVersion>"
12781255
}
12791256
```
12801257

@@ -1314,6 +1291,8 @@ source: {
13141291
```
13151292
---
13161293

1294+
paste from: https://github.com/MicrosoftDocs/azure-docs-pr/pull/232209/files#r1173054534
1295+
13171296
## Properties: stagingResourceGroup
13181297

13191298
The `stagingResourceGroup` property contains information about the staging resource group that the Image Builder service creates for use during the image build process. The `stagingResourceGroup` is an optional property for anyone who wants more control over the resource group created by Image Builder during the image build process. You can create your own resource group and specify it in the `stagingResourceGroup` section or have Image Builder create one on your behalf.

0 commit comments

Comments
 (0)