Add-EntityDefaultKeyProvider

This cmdlet adds a key provider to entities as default key provider.

Syntax

[-Entity]  <VIObject[]>
-KeyProvider  <KeyProvider>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Entity
VIObject[] 1
  • wildcards
  • 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
    KeyProvider named
  • wildcards
  • pipeline
  • Specifies the key provider you want to add to the entities.
    optional
    Server
    VIServer[] named
  • wildcards
  • 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

    Feedback

    Was this page helpful?