DebugFactor.com | Forum

Error during VM provisioning in Vsphere using Terraform

I am trying to build a VM in Vsphere via Terraform. I get an error during apply as below.

Error: error settingup new vSphere SOAP client: ServerFaultCode: Permission to perform this operation was denied.

Please advise.

I have faced the same issue. The username and password for Vsphere client provided in the terraform variables section were wrong. Once the password was corrected it worked fine. Also make sure the username has full permissions.