Syntax
Connect-SrmServer [-User <String>] [-Password <SecureString>] [-Port <Int32>] [-Protocol <String>] [-Credential <PSCredential>] [-RemoteCredential <PSCredential>] [-RemoteUser <String>] [-RemotePassword <SecureString>] [-NotDefault] [-IgnoreCertificateErrors] [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet establishes a connection to an SRM server. To access the SRM API, use the ExtensionData property of the output of this command.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
SrmServerAddress | String | Specifies the IP address or fully qualified domain name (FQDN) of the SRM server. | true | false | |
Credential | PSCredential | Specifies the credentials to be used to log in to the SRM server. This parameter is an alternative to the user/password pair of parameters. | false | false | |
IgnoreCertificateErrors | SwitchParameter | If specified, any errors related to a bad server certificate of the SRM server are ignored. | false | false | |
Locale | String | If specified, defines the locale of the strings produced by the server for this connection. | false | false | |
NotDefault | SwitchParameter | If specified, the resulting connection is not listed in the list of default connections to SRM servers and must be manually specified when used with a cmdlet. | false | false | |
Password | SecureString | Specifies the password for the connection to the SRM server. | false | false | |
Port | Int32 | Specifies the port on the server you want to use for the connection. If not specified, a protocol-specific default value is used. | false | false | |
Protocol | String | Specifies the Internet protocol you want to use for the connection. It can be either HTTP or HTTPS. If not specified, HTTPS is used. | false | false | |
RemoteCredential | PSCredential | Specifies the credentials for a remote SRM server. | false | false | |
RemotePassword | SecureString | Specifies the password for the connection to the remote SRM server. | false | false | |
RemoteUser | String | Specifies the user name that is used to log on in to the remote SRM server. | false | false | |
Server | VIServer[] | Specifies the vCenter Server system that the SRM server is associated to. 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 Connect-VIServer. | false | true (ByValue) | |
User | String | Specifies the user name that is used to log in to the SRM server. | false | false |
Return Type
SrmServerNotes
Examples
-------------- Example 1 --------------
Connect-VIServer "myVCServerIp" -User "myUser" -Password "myPassword" Connect-SrmServer
Connects to a vCenter Server system, that has an SRM server associated with it. Then, invokes the cmdlet without specifying any parameters to establish a connection to the SRM server registered with the connected vCenter Server system. If you have previously connected to other vCenter Server systems configured with SRM server support, this cmdlet invocation will establish a connection to their corresponding SRM servers as well.
-------------- Example 2 --------------
Connect-SrmServer -SrmServerAddress 192.0.2.1 -User "myUser" -Password "myPassword"
Connects to an SRM server with an IP address of 192.0.2.1 by passing a valid user name and password.
-------------- Example 3 --------------
Connect-VIServer "myVCServerIp" -User "myUser" -Password "myPassword" Connect-SrmServer -RemoteCredential $myRemoteCredential
Connects to a vCenter Server system associated with an SRM server. Then, establishes a connection to that SRM server by passing valid credentials for connection to the remote SRM server.
-------------- Example 4 --------------
Connect-VIServer "myVCServerIp" -User "myUser" -Password "myPassword" Connect-SrmServer -NotDefault -IgnoreCertificateErrors
Connects to a vCenter Server system, that has an associated SRM server. Then, establishes an SRM server connection by ignoring any errors related to bad server certificates. The newly created SRM server connection is not added to the default list of SRM server connections.