Open jwealthdale opened 8 months ago
I had that happen too, usually it means that the disk attributes changed so much between states that it thinks it's all new. Whenever I have a VM move to a new vCenter/datacenter/cluster/etc, I would do the following:
I would test this with a fresh local tfstate and test vm to get comfortable with this process before affecting live resources.
We've just added new hosts to our existing VMware cluster running ESXi 8.0. Migrating existing VMs from the old hosts to the new hosts and importing TF resources back into state causes disk to be labelled as 'deleted' and new disks are created on apply. The underlying datastores are the same.
Versions
Terraform: 1.7.5 vSphere Provider: 2.7.0
As a workaround we've had to ignore changes to disk.