VMware vSphere provider issue

Hi Team,

We are not able to create the resource in VMWare vSphere client due password incorrect issue. Below VMWare vSphere Client is correct or not. Can you please confirm.

provider “vsphere” {

#version = “~> 1.4.1”

user = var.vsphere_user

password = var.vsphere_password

vsphere_server = “inblr-mvm-1615.eu.uis.unisys.com

If you have a self-signed cert

allow_unverified_ssl = fasle

}

data “vsphere_datacenter” “dc” {

name = “US_ERL”

}

Error Message

Error: error setting up new vSphere SOAP client: ServerFaultCode: Cannot complete login due to an incorrect user name or password.

on cmp_main.tf line 1, in provider “vsphere”:
1: provider “vsphere” {

Thanks,
Rajesh

I had these issue as well. Special characters in the password caused the issue. Once password is changed it worked fine.

1 Like

In my case, ESXi had Lockdown Mode enabled. Found it out by attempting to login to the vSphere client of the ESXi host and it wouldn’t log me in. You can disable it via the physical ESXi console/IPMI or via vCenter, Configure for ESXi host, Security profile.