Connect-VcfSddcManagerServer Command | Vmware PowerCLI Reference

Connect-VcfSddcManagerServer

This cmdlet establishes a connection to a VMware SDDC Manager Server. The resulting connections are added to the list of default connections in a global variable named "$global:defaultSddcManagerConnections" (if the NotDefault switch was not specified).

Syntax

Connect-VcfSddcManagerServer
-Server < String[] >
[-Credential < PSCredential > ]
[-IgnoreInvalidCertificate ]
[-NotDefault ]
[-Password < SecureString > ]
[-Port < Int32[] > ]
[-ProgressAction < ActionPreference > ]
[-Protocol < String > ]
[-User < String > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Server String[] named
Specifies the IP address or fully qualified domain name (FQDN) of the VMware SDDC Manager Server.
optional Credential PSCredential named
Specifies the credentials to log in to the VMware SDDC Manager Server. You can use this parameter as an alternative to the User/Password parameter pair.
optional IgnoreInvalidCertificate SwitchParameter named
If specified, PowerCLI ignores any errors related to invalid server certificates of the VMware SDDC Manager Server.
optional NotDefault SwitchParameter named
If specified, the resulting connection is not recorded in the list of default VMware SDDC Manager server connections and must be manually specified when you use a cmdlet.
optional Password SecureString named
Specifies the password to log in to the VMware SDDC Manager Server.
optional Port Int32[] named
Specifies the port on the server you want to use for the connection. If not specified, a protocol-specific default value is used.
optional ProgressAction ActionPreference named
optional Protocol String named
Specifies the Internet protocol you want to use for the connection. It can be either HTTP or HTTPS. If not specified, HTTPS is used.
optional User String named
Specifies the user name to log in to the VMware SDDC Manager Server.

Output

VMware.Sdk.Vcf.SddcManager.Types.VcfSddcManagerServer

Examples

Example 1

PS C:\> Connect-VcfSddcManagerServer -Server MySDDCManager.com -User "User" -Password "Password"

Connects to a VMware SDDC Manager server with a MySDDCManager.com address by passing a valid user name and password.

Example 2

PS C:\> $myCredential = Get-Credential
PS C:\> Connect-VcfSddcManagerServer -Server MySDDCManager.com -Credential $myCredential
Connects to a VMware SDDC Manager server with a MySDDCManager.com address by passing a credential object.

Related Commands

VcfSddcManagerServer

This cmdlet establishes a connection to a VMware SDDC Manager Server.

Disconnect-VcfSddcManagerServer [-Server] <VcfSddcManagerServer[]> [-Force] [<CommonParameters>]

This cmdlet establishes a connection to a VMware SDDC Manager Server.

Disconnect-VcfSddcManagerServer [-Server] <VcfSddcManagerServer[]> [-Force] [<CommonParameters>]