Add-EntityDefaultKeyProvider
This cmdlet adds a key provider to entities as default key provider.
Syntax
[-Entity]
<VIObject[]>
-KeyProvider <KeyProvider>
[-Server <VIServer[]>]
[CommonParameters]
-KeyProvider <KeyProvider>
[-Server <VIServer[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
VIObject[] | 1 |
|
Specifies the entities to which you want to add a default key provider. Only the Cluster type and the HostAndCluster type support this operation. | required |
|
KeyProvider | named |
|
Specifies the key provider you want to add to the entities. | optional |
|
VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet. |
Output
VMware.VimAutomation.ViCore.Types.V1.Security.KeyProvider
Examples
Example 1
$cluster = Get-Cluster -name "MyCluster"
Add-EntityDefaultKeyProvider -KeyProvider (Get-KeyProvider)[0] -Entity $cluster
Adds the first key provider to entity "MyCluster" as default key provider.
Related Commands
EntityDefaultKeyProvider
This cmdlet adds a key provider to entities as default key provider.
This cmdlet removes the default key provider from the specified entities.