Get-AzGalleryImageVersion
Get or list gallery image versions.
Syntax
DefaultParameter (Default)
Get-AzGalleryImageVersion
[-ResourceGroupName] <String>
[-GalleryName] <String>
[-GalleryImageDefinitionName] <String>
[[-Name] <String>]
[-ExpandReplicationStatus]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
SharedGalleryParameterSet
Get-AzGalleryImageVersion
[-GalleryImageDefinitionName] <String>
[[-Name] <String>]
-GalleryUniqueName <String>
-Location <String>
[-ExpandReplicationStatus]
[-Scope <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzGalleryImageVersion
[-GalleryImageDefinitionName] <String>
[[-Name] <String>]
-GalleryPublicName <String>
-Location <String>
[-ExpandReplicationStatus]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ResourceIdParameter
Get-AzGalleryImageVersion
[-ResourceId] <String>
[-ExpandReplicationStatus]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzGalleryImageVersion
[-ExpandReplicationStatus]
[-Location <String>]
[-Community]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get or list gallery image versions.
Examples
Example 1
Get-AzGalleryImageVersion -ResourceGroupName rg1 -GalleryName gallery1 -GalleryImageDefinitionName image1 -GalleryImageVersionName 1.0.0
ResourceGroupName : rg1
PublishingProfile :
TargetRegions[0] :
Name : South Central US
RegionalReplicaCount : 1
TargetRegions[1] :
Name : East US 2
RegionalReplicaCount : 2
TargetRegions[2] :
Name : Central US
RegionalReplicaCount : 1
Source :
ManagedImage :
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/
providers/Microsoft.Compute/images/test1
ReplicaCount : 1
ExcludeFromLatest : False
PublishedDate : 11/14/2018 12:00:00 AM
EndOfLifeDate : 2/18/2025 12:07:00 PM
ProvisioningState : Succeeded
StorageProfile :
OsDiskImage :
SizeInGB : 127
HostCaching : ReadWrite
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/
providers/Microsoft.Compute/galleries/gallery1/images/image1/versions/1.0.0
Name : 1.0.0
Type : Microsoft.Compute/galleries/images/versions
Location : eastus2
Tags : {}
Get the gallery image version.
Example 2
Get-AzGalleryImageVersion -ResourceGroupName rg1 -GalleryName gallery1 -GalleryImageDefinitionName image1 -GalleryImageVersionName 1*
ResourceGroupName : rg1
PublishingProfile :
TargetRegions[0] :
Name : South Central US
RegionalReplicaCount : 1
TargetRegions[1] :
Name : East US 2
RegionalReplicaCount : 2
TargetRegions[2] :
Name : Central US
RegionalReplicaCount : 1
Source :
ManagedImage :
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/
providers/Microsoft.Compute/images/test1
ReplicaCount : 1
ExcludeFromLatest : False
PublishedDate : 11/14/2018 12:00:00 AM
EndOfLifeDate : 2/18/2025 12:07:00 PM
ProvisioningState : Succeeded
StorageProfile :
OsDiskImage :
SizeInGB : 127
HostCaching : ReadWrite
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/
providers/Microsoft.Compute/galleries/gallery1/images/image1/versions/1.0.0
Name : 1.0.0
Type : Microsoft.Compute/galleries/images/versions
Location : eastus2
Tags : {}
ResourceGroupName : rg1
PublishingProfile :
TargetRegions[0] :
Name : South Central US
RegionalReplicaCount : 1
TargetRegions[1] :
Name : East US 2
RegionalReplicaCount : 2
TargetRegions[2] :
Name : Central US
RegionalReplicaCount : 1
Source :
ManagedImage :
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/
providers/Microsoft.Compute/images/test1
ReplicaCount : 1
ExcludeFromLatest : False
PublishedDate : 11/14/2018 12:00:00 AM
EndOfLifeDate : 2/18/2025 12:07:00 PM
ProvisioningState : Succeeded
StorageProfile :
OsDiskImage :
SizeInGB : 127
HostCaching : ReadWrite
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/
providers/Microsoft.Compute/galleries/gallery1/images/image1/versions/1.1.0
Name : 1.1.0
Type : Microsoft.Compute/galleries/images/versions
Location : eastus2
Tags : {}
Get the gallery image versions that starts with "1".
Example 3
Get-AzGalleryImageVersion -ResourceGroupName rg1 -GalleryName gallery1 -GalleryImageDefinitionName image1
ResourceGroupName : rg1
PublishingProfile :
TargetRegions[0] :
Name : South Central US
RegionalReplicaCount : 1
TargetRegions[1] :
Name : East US 2
RegionalReplicaCount : 2
TargetRegions[2] :
Name : Central US
RegionalReplicaCount : 1
Source :
ManagedImage :
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/
providers/Microsoft.Compute/images/test1
ReplicaCount : 1
ExcludeFromLatest : False
PublishedDate : 11/14/2018 12:00:00 AM
EndOfLifeDate : 2/18/2025 12:07:00 PM
ProvisioningState : Succeeded
StorageProfile :
OsDiskImage :
SizeInGB : 127
HostCaching : ReadWrite
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/
providers/Microsoft.Compute/galleries/gallery1/images/image1/versions/1.0.0
Name : 1.0.0
Type : Microsoft.Compute/galleries/images/versions
Location : eastus2
Tags : {}
ResourceGroupName : rg1
PublishingProfile :
TargetRegions[0] :
Name : South Central US
RegionalReplicaCount : 1
TargetRegions[1] :
Name : East US 2
RegionalReplicaCount : 2
TargetRegions[2] :
Name : Central US
RegionalReplicaCount : 1
Source :
ManagedImage :
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/
providers/Microsoft.Compute/images/test1
ReplicaCount : 1
ExcludeFromLatest : False
PublishedDate : 11/14/2018 12:00:00 AM
EndOfLifeDate : 2/18/2025 12:07:00 PM
ProvisioningState : Succeeded
StorageProfile :
OsDiskImage :
SizeInGB : 127
HostCaching : ReadWrite
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/
providers/Microsoft.Compute/galleries/gallery1/images/image1/versions/1.1.0
Name : 1.1.0
Type : Microsoft.Compute/galleries/images/versions
Location : eastus2
Tags : {}
Get all gallery image versions.
Parameters
List community galleries.
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
ListCommunityGalleryParameterSet
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ExpandReplicationStatus
Show replication status.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-GalleryImageDefinitionName
The name of the gallery image definition.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Aliases: GalleryImageName
Parameter sets
DefaultParameter
Position: 2
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
SharedGalleryParameterSet
Position: 2
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
CommunityGalleryParameterSet
Position: 2
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-GalleryName
The name of the gallery.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
DefaultParameter
Position: 1
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-GalleryPublicName
The public name of the Shared Image Gallery.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
CommunityGalleryParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-GalleryUniqueName
The unique name of the Shared Image Gallery.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
SharedGalleryParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-Location
Location of the Shared Image Gallery.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
SharedGalleryParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
CommunityGalleryParameterSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-Name
The name of the gallery image version.
Parameter properties
Type: String
Default value: None
Supports wildcards: True
DontShow: False
Aliases: GalleryImageVersionName
Parameter sets
DefaultParameter
Position: 3
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
SharedGalleryParameterSet
Position: 3
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
CommunityGalleryParameterSet
Position: 3
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-ResourceGroupName
The name of the resource group.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
DefaultParameter
Position: 0
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-ResourceId
The resource ID for the gallery image version
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ResourceIdParameter
Position: 0
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-Scope
Specifies galleries shared to subscription or tenant.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
SharedGalleryParameterSet
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs