terraform-provider-vcd
terraform-provider-vcd copied to clipboard
vcd_vapp_vm description change powers off VM when it is not required
I was troubleshooting my Terraform config trying to understand why my VMs were being power cycled despite minimal changes to config, when I noticed that the description field is noted in the documentation as requiring the VM to be powered off. This is not the case for the Cloud Director UI or when making straight API calls, so unless this is a limitation of the SDK or some other issue that I am unaware of, it should likely be removed from the list of fields that require the VM to be powered off: https://github.com/vmware/terraform-provider-vcd/blob/a1637f4d4c5e6dd87f367e1b0a6fb2703f9a99c5/vcd/resource_vcd_vapp_vm.go#L1760C1-L1764C151
Terraform Version
1.5.7
Affected Resource(s)
- vcd_vapp_vm
Expected Behavior
VM description should be updated in-place without power cycling
Actual Behavior
VM is powered off for description changes and powered back on
Steps to Reproduce
- Change description of existing vcd_vapp_vm resource or import VM with description that does not match its resource block
- terraform apply