你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzDevCenterAdminImage

获取库映像。

语法

Get-AzDevCenterAdminImage
   -DevCenterName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzDevCenterAdminImage
   -DevCenterName <String>
   -GalleryName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzDevCenterAdminImage
   -DevCenterName <String>
   -GalleryName <String>
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzDevCenterAdminImage
   -InputObject <IDevCenterIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

说明

获取库映像。

示例

示例 1:列出开发人员中心中的 iamges

Get-AzDevCenterAdminImage -ResourceGroupName testRg -DevCenterName Contoso

此命令列出资源组“testRg”下的开发人员中心“Contoso”中的映像。

示例 2:列出开发人员中心下的库中的图像

Get-AzDevCenterAdminImage -ResourceGroupName testRg -DevCenterName Contoso -GalleryName StandardGallery

此命令列出开发人员中心“Contoso”下的库“StandardGallery”中的图像。

示例 3:获取图像

Get-AzDevCenterAdminImage -ResourceGroupName testRg -DevCenterName Contoso -GalleryName StandardGallery -Name ContosoBaseImage

此命令获取开发人员中心“Contoso”下的库“StandardGallery”中名为“ContosoBaseImage”的图像。

示例 4:使用 InputObject 获取图像

$image = @{"ResourceGroupName" = "testRg"; "DevCenterName" = "Contoso"; "GalleryName" = "StandardGallery"; "ImageName" = "ContosoBaseImage"; "SubscriptionId" = "0ac520ee-14c0-480f-b6c9-0a90c58ffff"}
Get-AzDevCenterAdminImage -InputObject $image

此命令获取开发人员中心“Contoso”下的库“StandardGallery”中名为“ContosoBaseImage”的图像。

参数

-DefaultProfile

DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。

类型:PSObject
别名:AzureRMContext, AzureCredential
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-DevCenterName

开发中心的名称。

类型:String
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-GalleryName

库的名称。

类型:String
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-InputObject

要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。

类型:IDevCenterIdentity
Position:Named
默认值:None
必需:True
接受管道输入:True
接受通配符:False

-Name

图像的名称。

类型:String
别名:ImageName
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-ResourceGroupName

资源组的名称。 名称不区分大小写。

类型:String
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-SubscriptionId

目标订阅的 ID。

类型:String[]
Position:Named
默认值:(Get-AzContext).Subscription.Id
必需:False
接受管道输入:False
接受通配符:False

输入

输出