Get-AzGalleryImageVersion
语法
DefaultParameter (默认值)
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>]
说明
示例
示例 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 : {}
获取库映像版本。
示例 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 : {}
获取以“1”开头的库映像版本。
示例 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 : {}
获取所有库映像版本。
参数
列出社区库。
ListCommunityGalleryParameterSet
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ExpandReplicationStatus
显示复制状态。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-GalleryImageDefinitionName
库映像定义的名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | GalleryImageName |
参数集
DefaultParameter
| Position: | 2 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
SharedGalleryParameterSet
| Position: | 2 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
CommunityGalleryParameterSet
| Position: | 2 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-GalleryName
库的名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
DefaultParameter
| Position: | 1 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-GalleryPublicName
共享映像库的公共名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
CommunityGalleryParameterSet
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-GalleryUniqueName
共享映像库的唯一名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
SharedGalleryParameterSet
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-Location
共享映像库的位置。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
SharedGalleryParameterSet
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
CommunityGalleryParameterSet
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-Name
库映像版本的名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | True |
| 不显示: | False |
| 别名: | GalleryImageVersionName |
参数集
DefaultParameter
| Position: | 3 |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
SharedGalleryParameterSet
| Position: | 3 |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
CommunityGalleryParameterSet
| Position: | 3 |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-ResourceGroupName
资源组的名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
DefaultParameter
| Position: | 0 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-ResourceId
库映像版本的资源 ID
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
ResourceIdParameter
| Position: | 0 |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-Scope
指定共享到订阅或租户的库。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
SharedGalleryParameterSet
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。
输出