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
Connect-CIServer -Server cloud.example.com -User admin -Password pass
Connect-CIServer -Server cloud.example.com -Org Organization1 -Credential $vappUserCredential
Connect-CIServer -Server cloud.example.com -SessionID $sessionID
Connect-CIServer -Menu
$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