共用方式為


Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit

將軟體保證權益延伸至叢集

語法

Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit
      -ClusterName <String>
      -ResourceGroupName <String>
      [-SubscriptionId <String>]
      [-SoftwareAssuranceIntent <SoftwareAssuranceIntent>]
      [-DefaultProfile <PSObject>]
      [-AsJob]
      [-NoWait]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit
      -ClusterName <String>
      -ResourceGroupName <String>
      [-SubscriptionId <String>]
      -SoftwareAssuranceChangeRequest <ISoftwareAssuranceChangeRequest>
      [-DefaultProfile <PSObject>]
      [-AsJob]
      [-NoWait]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit
      -InputObject <IStackHciIdentity>
      [-SoftwareAssuranceIntent <SoftwareAssuranceIntent>]
      [-DefaultProfile <PSObject>]
      [-AsJob]
      [-NoWait]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit
      -InputObject <IStackHciIdentity>
      -SoftwareAssuranceChangeRequest <ISoftwareAssuranceChangeRequest>
      [-DefaultProfile <PSObject>]
      [-AsJob]
      [-NoWait]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

將軟體保證權益延伸至叢集

範例

範例 1:

Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit -ClusterName "test-clus" -ResourceGroupName "test-rg"

在叢集上啟用軟體保證,根據預設,意圖為「啟用」。

範例 2:

Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit -ClusterName "test-clus" -ResourceGroupName "test-rg" -SoftwareAssuranceIntent "Disable"

停用叢集上的軟體保證。

參數

-AsJob

以作業身分執行命令

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

-ClusterName

叢集的名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入: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

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

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

-NoWait

以異步方式執行命令

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

-ResourceGroupName

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

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

-SoftwareAssuranceChangeRequest

. 若要建構,請參閱 SOFTWAREASSURANCECHANGEREQUEST 屬性的 NOTES 區段,並建立哈希表。

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

-SoftwareAssuranceIntent

軟體保證權益的客戶意圖。

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

-SubscriptionId

目標訂用帳戶的標識碼。 此值必須是 UUID。

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

-WhatIf

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

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

輸入

ISoftwareAssuranceChangeRequest

IStackHciIdentity

輸出

ICluster