PowerCLI Reference

Set-TrustedCluster

Synopsis

This cmdlet modifies the trusted clusters with the specified state in the workload vCenter Server system.

Syntax

Set-TrustedCluster [-TrustedCluster] <TrustedCluster[]> [-Confirm] [-Server <VIServer[]>] -State {Enabled | Disabled} [-WhatIf] [<CommonParameters>]

Related Commands

Online Version
Get-TrustedCluster
Add-TrustedClusterAttestationServiceInfo
Add-TrustedClusterKeyProviderServiceInfo
Remove-TrustedClusterAttestationServiceInfo
Remove-TrustedClusterKeyProviderServiceInfo

Detailed Description

This cmdlet modifies the trusted clusters with the specified state in the workload vCenter Server system.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
TrustedClusterTrustedCluster[]Specifies the trusted clusters whose state you want to update.trueTrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.falseFalse
StateTrustedStateSpecifies the state in which you want to update the specified trusted clusters.trueFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

VMware.VimAutomation.Security.Types.V1.TrustedInfrastructure.TrustedCluster

Notes

Examples

-------------------------- Example 1 --------------------------

Set-TrustedCluster -TrustedCluster mycluster -State Enabled

Copies the attestation service information and key provider service information from the workload vCenter Server system to the specified trusted cluster mycluster.


Copyright © VMware, Inc. All rights reserved.