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 cloud.example.com -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 cloud.example.com -User admin -Password pass
Option 2:
Connect-CIServer -Server cloud.example.com -Org Organization1 -Credential $vappUserCredential
Option 3:
Connect-CIServer -Server cloud.example.com -SessionID $sessionID
Option 4:
Connect-CIServer -Menu
Option 5:
$vCloudAirConnection = Connect-PIServer -User myUser@vmware.com -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.
Get-Catalog
Feedback

Was this page helpful?