Provider: vsphere
Terraform: 1.0.0
vsphere Provider: 2.0.1
When I deploy a new VM to a specific folder in the vsphere_virtual_machine resource, it deploys it correctly. The plan contains for example:
folder = “/Cluster/vm/Terraform”
but once it applies this configuration correctly, I look at the state file and it has this:
“folder”: “Terraform”,
So it only holds the last folder and not the entire path. Because of this, every time I run a plan or apply, it thinks the VM needs to be moved and actually does the “move” task but doesn’t actually move it anywhere because it’s already there.