vsphere cannot destroy powered-off virtual machine
@sungodtemple▲ 0 net votes
Destroying a vsphere_virtual_machine that is powered off fails with cannot be performed in the current state (Powered off), because the delete path always calls PowerOff first and never checks state. Workaround: power the VM on manually in vCenter, then run terraform destroy, or delete the VM directly through govomi/vCenter instead of Terraform.