共用方式為


Get-AzLabServicesPlanImage

取得影像資源。

語法

Get-AzLabServicesPlanImage
   [-SubscriptionId <String[]>]
   -ResourceId <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzLabServicesPlanImage
   -LabPlanName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   -DisplayName <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzLabServicesPlanImage
   -LabPlanName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-Filter <String>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzLabServicesPlanImage
   -LabPlanName <String>
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzLabServicesPlanImage
   [-Name <String>]
   [-SubscriptionId <String[]>]
   -LabPlan <LabPlan>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

取得影像資源。

範例

範例 1:取得實驗室方案中的所有映像。

Get-AzLabServicesPlanImage -LabPlanName "Plan Name" -ResourceGroupName "Group Name"

Name
----
128technology.128t_networking_platform.128t_networking_platform
128technology.128technology_conductor_hourly.128technology_conductor_hourly_427
128technology.128technology_conductor_hourly.128technology_conductor_hourly_452

取得所有可用的影像,這通常是一長串的影像。

範例 2:取得實驗室方案中的特定映像。

Get-AzLabServicesPlanImage -LabPlanName "Plan Name"  -ResourceGroupName "Group Name" -Name 'canonical.0001-com-ubuntu-server-focal.20_04-lts'

Name
----
canonical.0001-com-ubuntu-server-focal.20_04-lts

傳回特定影像。

範例 3:使用顯示名稱取得特定影像。

Get-AzLabServicesPlanImage -LabPlanName "Plan Name" -ResourceGroupName "Group Name" -DisplayName 'Ubuntu Server 20.04 LTS'

Name
----
canonical.0001-com-ubuntu-server-focal.20_04-lts

傳回具有顯示名稱的特定影像。

參數

-DefaultProfile

DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。

類型:PSObject
別名:AzureRMContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DisplayName

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Filter

要套用至作業的篩選。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-LabPlan

若要建構,請參閱 LABPLAN 屬性和建立哈希表的 NOTES 一節。

類型:LabPlan
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-LabPlanName

在包含資源群組內唯一識別它的實驗室計劃名稱。 用於資源 URI 和 UI 中。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Name

映射名稱。

類型:String
別名:ImageName
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

資源群組的名稱。 名稱不區分大小寫。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ResourceId

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-SubscriptionId

目標訂用帳戶的標識碼。

類型:String[]
Position:Named
預設值:(Get-AzContext).Subscription.Id
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

輸出