Getting Started with VMware NSX-T Data Center cmdlets

Provides cmdlets for managing NSX-T servers.

Step 1: Connect to Environment 


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

Option 1:
$credential = Get-Credential
Connect-NsxtServer -Server $serverAddress -Credential $credential
Option 2:
Connect-NsxtServer -Server $serverAddress -Credential -User $user -Password $pass -SaveCredentials
Option 3:
Connect-NsxtServer -Server $serverAddress -User $user

Step 2: Try a GET Command 


For example when successfully connected you can run the Get-NsxtGlobalManagerService command.
$service = Get-NsxtGlobalManagerService com.vmware.nsx_global_policy.global_infra.domains.groups
$service.list("domain_id")
Feedback

Was this page helpful?