You can connect to the vSphere Automation API with VMware PowerCLI through the Connect-VIServer cmdlet or through a configuration object.

You can access a vSphere Automation API server in two ways with PowerCLI.

  • Through the Connect-VIServer cmdlet.

  • Through a configuration object.