Skip to content

Commit fdac9ae

Browse files
modified runOutputName into distribute VHD examples
1 parent c95c3d5 commit fdac9ae

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to create a Bicep file or ARM JSON template to use with A
44
author: kof-f
55
ms.author: kofiforson
66
ms.reviewer: erd
7-
ms.date: 05/08/2023
7+
ms.date: 05/17/2023
88
ms.topic: reference
99
ms.service: virtual-machines
1010
ms.subservice: image-builder
@@ -1110,6 +1110,11 @@ The following JSON distributes the image as a VHD to a custom storage account.
11101110
"distribute": [
11111111
{
11121112
"type": "VHD",
1113+
"runOutputName": "<VHD name>",
1114+
"artifactTags": {
1115+
"<name>": "<value>",
1116+
"<name>": "<value>"
1117+
},
11131118
"uri": "<replace with Azure storage URI>"
11141119
}
11151120
]
@@ -1118,12 +1123,17 @@ The following JSON distributes the image as a VHD to a custom storage account.
11181123
# [Bicep](#tab/bicep)
11191124

11201125
```bicep
1121-
distribute: [
1122-
{
1126+
resource distribute 'Microsoft.Compute/galleries/images/runOutputs' = {
1127+
name: '<VHD name>'
1128+
properties: {
11231129
type: 'VHD'
1130+
artifactTags: {
1131+
'<name>': '<value>'
1132+
'<name>': '<value>'
1133+
}
11241134
uri: '<replace with Azure storage URI>'
11251135
}
1126-
]
1136+
}
11271137
```
11281138

11291139
---

0 commit comments

Comments
 (0)