共用方式為


Update-AzLabServicesPlanImage

更新映像資源。

語法

Update-AzLabServicesPlanImage
      [-SubscriptionId <String>]
      [-EnabledState <EnableState>]
      -ResourceId <String>
      [-DefaultProfile <PSObject>]
      [-AsJob]
      [-NoWait]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzLabServicesPlanImage
      -LabPlanName <String>
      -Name <String>
      -ResourceGroupName <String>
      [-SubscriptionId <String>]
      [-EnabledState <EnableState>]
      [-DefaultProfile <PSObject>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzLabServicesPlanImage
      -Name <String>
      [-SubscriptionId <String>]
      -LabPlan <LabPlan>
      [-EnabledState <EnableState>]
      [-DefaultProfile <PSObject>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

更新映像資源。

範例

範例 1:更新實驗室計劃映像。

Update-AzLabServicesPlanImage -ResourceGroupName "Group Name" -LabPlanName "LabPlan Name" -Name "Image Name" -EnabledState "Enabled"

Name
----
Image Name

此範例會啟用映像以用於實驗室。

參數

-AsJob

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

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

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

-DefaultProfile

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

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

-EnabledState

映像已啟用

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

-LabPlan

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

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

-LabPlanName

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

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

-Name

映射名稱。

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

-NoWait

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

-ResourceGroupName

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

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

-ResourceId

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

-SubscriptionId

目標訂用帳戶的標識碼。

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

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

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

輸入

輸出