你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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>]
说明
将软件保障权益扩展到群集
示例
示例 1:
Invoke-AzStackHciExtendClusterSoftwareAssuranceBenefit -ClusterName "test-clus" -ResourceGroupName "test-rg"
在群集上启用软件保障,默认情况下意向为“enable”。
示例 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
要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。
类型: | 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
目标订阅的 ID。 该值必须是 UUID。
类型: | String |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输入
ISoftwareAssuranceChangeRequest