New-TrustAuthorityPrincipal

This cmdlet creates a new Trust Authority principal in the specified Trust Authority cluster in the Trust Authority vCenter Server system.

Syntax

[-TrustedPrincipal]  <TrustedPrincipal>
-TrustAuthorityCluster  <TrustAuthorityCluster>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
TrustedPrincipal
TrustedPrincipal 1
  • pipeline
  • Specifies the trusted principal in the workload vCenter Server system to create a Trust Authority principal.
    required
    TrustAuthorityCluster
    TrustAuthorityCluster named
  • pipeline
  • Specifies the Trust Authority cluster in which you want to create the Trust Authority principal.
    optional
    Server
    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.

    [-Name]  <String>
    -CertificateChain  <X509Chain[]>
    -Domain  <String>
    -Issuer  <String>
    -TrustAuthorityCluster  <TrustAuthorityCluster>
    [-Server  <VIServer[]>]
    [-Type  <PrincipalType>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Name
    String 1 Specifies the name of the trusted principal in the workload vCenter Server system to create a Trust Authority principal.
    required
    CertificateChain
    X509Chain[] named Specifies the certificate chain of the trusted principal in the workload vCenter Server system to create a Trust Authority principal.
    required
    Domain
    String named Specifies the domain of the trusted principal in the workload vCenter Server system to create a Trust Authority principal.
    required
    Issuer
    String named Specifies the issuer of the trusted principal in the workload vCenter Server system to create a Trust Authority principal.
    required
    TrustAuthorityCluster
    TrustAuthorityCluster named
  • pipeline
  • Specifies the Trust Authority cluster in which you want to create the Trust Authority principal.
    optional
    Server
    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.
    optional
    Type
    PrincipalType named Specifies the type of the trusted principal in the workload vCenter Server system to create a Trust Authority principal.

    -FilePath  <String>
    -TrustAuthorityCluster  <TrustAuthorityCluster>
    [-Server  <VIServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    FilePath
    String named Specifies the file including the trusted principal in the workload vCenter Server system to create the Trust Authority principal.
    required
    TrustAuthorityCluster
    TrustAuthorityCluster named
  • pipeline
  • Specifies the Trust Authority cluster in which you want to create the Trust Authority principal.
    optional
    Server
    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.Security.Types.V1.TrustedInfrastructure.TrustAuthorityPrincipal

    Examples


    Example 1

    $trustedPrincipal = Get-TrustedPrincipal -Server workloadSystem
    New-TrustAuthorityPrincipal -TrustAuthorityCluster mycluster -TrustedPrincipal $trustedPrincipal -Server trustAuthoritySystem

    Creates the Trust Authority principal in the Trust Authority cluster mycluster from the trusted principal object $trustedPrincipal. You can retrieve the trusted principal object from the connected workload vCenter Server system workloadSystem.

    Example 2

    Export-TrustedPrincipal -Server workloadSystem -FilePath c:\mypath
    New-TrustAuthorityPrincipal -TrustAuthorityCluster mycluster -FilePath c:\mypath -Server trustAuthoritySystem

    Exports the trusted principal object from the connected workload vCenter Server system workloadSystem to the c:\mypath file. Creates the Trust Authority principal in the Trust Authority cluster mycluster from the c:\mypath file.

    Example 3

    $trustedPrincipal = Get-TrustedPrincipal -Server workloadSystem
    New-TrustAuthorityPrincipal -TrustAuthorityCluster mycluster -Name $trustedPrincipal.Name
    -Domain $trustedPrincipal.Domain -Issuer $trustedPrincipal.Issuer -CertificateChain $trustedPrincipal.CertificateChain -Type $trustedPrincipal.Type -Server trustAuthoritySystem

    Creates a Trust Authority principal in the Trust Authority cluster mycluster from each property of the trusted principal object. You can retrieve the Trusted principal object from the connected workload vCenter Server system workloadSystem.

    Related Commands

    Feedback

    Was this page helpful?