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
$credential = Get-Credential
Connect-NsxtServer -Server $serverAddress -Credential $credential
Connect-NsxtServer -Server $serverAddress -Credential -User $user -Password $pass -SaveCredentials
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")