IBM Support

How do you access a vCenter Server or ESXi host with PowerCLI or PowerShell through the VPN?

Question & Answer


Question

How do you access a vCenter Server or ESXi host with PowerCLI or PowerShell through the VPN?

Answer

Answer

Once you are in the IBM Cloud infrastructure VPN, use the following command:

Connect-VIServer -Server <string with the IP address of the vCenter Server> -Credential (Get-Credential)

If you leave your PowerShell session open for a long time, then a shortcut is to create a variable with your credentials in it, using a command such as follows:

$vccred = Get-Credential name@domain.local

Then, when you give the -Credential switch, you just use $vccred, and you do not have to give your username and password each time. The credentials are encrypted by the Get-Credential PowerShell cmdlet so are secure.

Related URL

How to access a provisioned VMware instance on the IBM Cloud

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSCLB3","label":"VMware Solutions"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
01 August 2019

UID

ibm1KB0012052