Skip to content

Commit d25065e

Browse files
authored
Merge pull request #204693 from kobulloc-MSFT/patch-20
Restoring PowerShell for step 2 of Create an image
2 parents 8a466d0 + 4a499e7 commit d25065e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,18 @@ Grant Azure image builder permissions to create images in the specified resource
195195

196196
1. Create a VM Image Builder distributor object.
197197

198+
```azurepowershell-interactive
199+
$disObjParams = @{
200+
SharedImageDistributor = $true
201+
ArtifactTag = @{tag='dis-share'}
202+
GalleryImageId = "/subscriptions/$subscriptionID/resourceGroups/$imageResourceGroup/providers/Microsoft.Compute/galleries/$myGalleryName/images/$imageDefName"
203+
ReplicationRegion = $location
204+
RunOutputName = $runOutputName
205+
ExcludeFromLatest = $false
206+
}
207+
$disSharedImg = New-AzImageBuilderDistributorObject @disObjParams
208+
```
209+
198210
1. Create a VM Image Builder customization object.
199211

200212
```azurepowershell-interactive

0 commit comments

Comments
 (0)