VMware vSphere integration pack integration pack for VMware vSphere is an add-on for System Center – Orchestrator, it assists you in automating actions in VMware vSphere, enabling full management of your virtualized computing infrastructure.

 

After following the article https://docs.microsoft.com/en-us/system-center/orchestrator/vsphere-integration-pack?view=sc-orch-2019 to integrate the VMWare with SCORCH had an issue while trying to use the “Get VM List” properties and got the below error.

 

Exception: IntegrationPackException

 

I had tried to capture the traces but didn’t find anything.

So, tried to check the connection outside Orchestrator application using the Connect-VIServer cmdlet but it immediately fails with:

 

 

PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> Connect-VIServer vCenter.lab.com

Connect-VIServer : 02/08/2020 11:41:37 AM Connect-VIServer The underlying connection was closed: An unexpected error

occurred on a send.

At line:1 char:1

+ Connect-VIServer vCenter.domain.com

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: (:) [Connect-VIServer], ViError

+ FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_WebException,VMware.VimAutomation.ViCore.Cmdl

ets.Commands.ConnectVIServer

PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI>

 

Cause:

It was failing due to TLS error. From Vcenter, it was TLS 1.2 only enabled while TLS 1.0 and 1.1 is disabled by default.

 

Resolution:

Create the following registry key by following these steps:

  1. Start Registry Editor. To do this, right-click Start, type regedit in the Runbox, and then select OK.
  2. Locate the following registry subkey:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\ [.NET_version]

  1. Create the following DWORD value under this key:

SchUseStrongCrypto [Value = 1]

  1. Locate the following registry subkey:

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\ [.NET_version]

  1. Create the following DWORD value under this key:

SchUseStrongCrypto [Value = 1]

 

Additional Links:

https://pubs.vmware.com/vsphere-51/index.jsp?topic=%2Fcom.vmware.powercli.cmdletref.doc%2FConnect-VIServer.html

https://www.powershellgallery.com/packages/VMware.PowerCLI/11.1.0.11289667