Getting Started with VMware Cloud Director cmdlets

Provides cmdlets for automating vCloud Director features.

Step 1: Connect to Environment 

To setup a connection you should use the Connect-CIServer command. Run the code sample below to connect.
Connect-CIServer -Server -User Org1Admin -Password pass -Org Organization1
You can also connect to remote environment by running one of the alternative options to connect below:

Option 1:
Connect-CIServer -Server -User admin -Password pass
Option 2:
Connect-CIServer -Server -Org Organization1 -Credential $vappUserCredential
Option 3:
Connect-CIServer -Server -SessionID $sessionID
Option 4:
Connect-CIServer -Menu
Option 5:
$vCloudAirConnection = Connect-PIServer -User -Password 'pass'
$myDatacenter = Get-PIDatacenter 'myDatacenter'
Connect-CIServer -PIDatacenter $myDatacenter

Step 2: Try a GET Command 

For example when successfully connected you can run the Get-Catalog command.

Was this page helpful?