Configuring Microsoft Entra ID for vCenter Server, the process fails at the "Test Connection" step of provisioning.
An example of the error generated when "Test Connection" fails.
The error output contains:
The underlying connection was closed: Could not establish trust relationship for the SSL\\\/TLS secure channel.\\r\\nStack trace:\\r\\n at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\\r\\n at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)\\r\\n\\r\\nInner exception:\\r\\nType: System.Security.Authentication.AuthenticationException\\r\\nThe remote certificate is invalid according to the validation procedure.\\r\\nStack trace:\\r\\n at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)\\r\\n at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult
VMware vCenter Server 8.0 Update 2 and later
Microsoft Entra ID
The machine hosting the provisioning agent lacks the required vCenter CA certificates to trust the vCenter Server.
1. Download the vCenter CA certificates. Follow the steps in Download and install vCenter Server root certificates to avoid web browser certificate warnings
2. Install the certificates on the machine running the provisioning agent.
3. Restart the provisioning agent.
4. Rerun the connection test.