Closed robinher closed 3 years ago
Hi Robin,
powernsx is only for NSX-V (for v-Sphere)
There is official module with "High API level" on PowerCLI (using Connect-nsxtserver and Get-NsxtService, you can look https://cloudmaniac.net/powercli-nsx-t-module/) or there is a unofficial module psNSXT ;-)
Closing as issue is not related to NSX-v
When using PowerCLI v12.2.0 to connect to vSphere management components, the connection to NXS Manager v2.5.x fails while connections to vCenter and HCX manager in the same network segment are succesfull.
Install-Module -Name VMware.PowerCLI Import-Module VMware.PowerCLI
$AVSdomainsuffix = ".d33216387c3e4da5a03511.westus.avs.azure.com"
$VCUser =
$NSXUser =
$Password = ""
Connect-VIServer -Server 10.250.160.2 -User $VCUser -Password $Password Connect-HCXServer -Server 10.250.160.9 -User $VCUser -Password $Password
$NSXTServerName = "nsx$AVSdomainsuffix" Connect-NsxtServer -Server $NSXTServerName -User $NSXUser -Password $Password Connect-NsxtServer -Server 10.250.160.3 -User $NSXUser -Password $Password
Results: PS C:\Users\\Desktop\PowerCLI> Install-Module -Name VMware.PowerCLI
PS C:\Users\\Desktop\PowerCLI> Import-Module VMware.PowerCLI
WARNING: Please consider joining the VMware Customer Experience Improvement Program, so you can help us make PowerCLI a better product. You can join using the following command:
Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true
VMware's Customer Experience Improvement Program ("CEIP") provides VMware with information that enables VMware to improve its products and services, to fix problems, and to advise you on how best to deploy and use our products. A s part of the CEIP, VMware collects technical information about your organization’s use of VMware products and services on a regular basis in association with your organization’s VMware license key(s). This information does n ot personally identify any individual.
For more details: type "help about_ceip" to see the related help article.
To disable this warning and set your preference use the following command and restart PowerShell: Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true or $false. Welcome to VMware PowerCLI!
Log in to a vCenter Server or ESX host: Connect-VIServer To find out what commands are available, type: Get-VICommand To show searchable help for all PowerCLI commands: Get-PowerCLIHelp Once you've connected, display all virtual machines: Get-VM If you need more help, visit the PowerCLI community: Get-PowerCLICommunity
PS C:\Users\\Desktop\PowerCLI> $AVSdomainsuffix = ".d33216387c3e4da5a03511.westus.avs.azure.com"
$VCUser =
$NSXUser =
$Password =
PS C:\Users\\Desktop\PowerCLI> Connect-VIServer -Server 10.250.160.2 -User $VCUser -Password $Password
Name Port User
10.250.160.2 443
PS C:\Users\\Desktop\PowerCLI> Connect-HCXServer -Server 10.250.160.9 -User $VCUser -Password $Password
Server User
10.250.160.9
PS C:\Users\\Desktop\PowerCLI> Connect-NsxtServer -Server 10.250.160.3 -User $NSXUser -Password $Password
Connect-NsxtServer : 2/24/2021 12:45:59 PM Connect-NsxtServer Unable to connect to the remote server
At line:1 char:1