Connect to a vCloud Director Server
To run cmdlets on a vCloud Director server and perform administration or monitoring tasks, you must establish a connection to the server.
You can have more than one connection to the same server. For more information, see Managing Default Server Connections.
If your login credentials contain non-alphanumeric characters, you might need to escape them. For more information, see Providing Login Credentials.
Prerequisites
If you use a proxy server for the connection, verify that it is configured properly, so that the connection is kept alive long enough for tasks to finish.
Note: If you do not want to
use a proxy server for the connection, run
Set-PowerCLIConfiguration
-ProxyPolicy
NoProxy
.
Procedure
Run Connect-CIServer with the server name and valid credentials.
Connect-CIServer -Server cloud.example.com -User 'MyAdministratorUser' -Password 'MyPassword'