Skip to content

Commit 6ba538d

Browse files
authored
Example with wrong parameter (typo) (#14743)
Error: Update-AzGalleryImageVersion: A parameter cannot be found that matches parameter name 'GalleryImageName'. Solution: rename GalleryImageName to GalleryImageDefinitionName
1 parent 53900bb commit 6ba538d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ PS C:\> $region1 = @{Name='West US';ReplicaCount=1}
4646
PS C:\> $region2 = @{Name='East US';ReplicaCount=2}
4747
PS C:\> $region3 = @{Name='Central US'}
4848
PS C:\> $targetRegions = @($region1,$region2,$region3)
49-
PS C:\> Update-AzGalleryImageVersion -ResourceGroupName $rgname -GalleryName $galleryName -GalleryImageName $imageName -Name $versionName -ReplicaCount 2 -PublishingProfileEndOfLifeDate $endOfLifeDate -TargetRegion $targetRegions
49+
PS C:\> Update-AzGalleryImageVersion -ResourceGroupName $rgname -GalleryName $galleryName -GalleryImageDefinitionName $imageName -Name $versionName -ReplicaCount 2 -PublishingProfileEndOfLifeDate $endOfLifeDate -TargetRegion $targetRegions
5050
```
5151

5252
Update a gallery image version.

0 commit comments

Comments
 (0)