Skip to content

Commit 85c061a

Browse files
authored
{AzureCompute} Fix the OSDiskImage parameter in Example 6 for New-AzGalleryImageVersion cmdlet (#21410)
Fix the `OSDiskImage` parameter in Example 6 for `New-AzGalleryImageVersion` cmdlet fixes #21400
1 parent eb06681 commit 85c061a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compute/Compute/help/New-AzGalleryImageVersion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ $galleryImageDefinitionName = "myImage"
112112
$galleryImageVersionName = "1.0.0"
113113
$location = "eastus"
114114
$osSnapshot = @{Source = @{Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mySnapshotRG/providers/Microsoft.Compute/snapshots/myOSSnapshot" }}
115-
New-AzGalleryImageVersion -ResourceGroupName $rgName -GalleryName $galleryName -GalleryImageDefinitionName $galleryImageDefinitionName -Name $galleryImageVersionName -Location $location -OSDiskImage $osDisk
115+
New-AzGalleryImageVersion -ResourceGroupName $rgName -GalleryName $galleryName -GalleryImageDefinitionName $galleryImageDefinitionName -Name $galleryImageVersionName -Location $location -OSDiskImage $osSnapshot
116116
```
117117

118118
Create an image version from a disk snapshot

0 commit comments

Comments
 (0)