Getting Started with VMware NSX-T Data Center cmdlets
Provides cmdlets for managing NSX-T servers.
Step 1: Connect to Environment
# Connects to an NSX-T server by using the User and Password parameters.
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 :
# Connects to an NSX-T server by using the Credential parameter.
$credential = Get-Credential Connect-NsxtServer -Server $serverAddress -Credential $credential
Option 2 :
# Connects to an NSX-T server and stores the credentials in the credential store.
Connect-NsxtServer -Server $serverAddress -Credential -User $user -Password $pass -SaveCredentials
Option 3 :
# Connects to an NSX-T server when a record for the specified server and user is available in the credential store.
Connect-NsxtServer -Server $serverAddress -User $user
Step 2: Retrieve a object by running a Get command
# Retrieves the binding for the specified service and invokes a service operation.
$service = Get-NsxtGlobalManagerService com.vmware.nsx_global_policy.global_infra.domains.groups $service.list("domain_id")