The terraform vsphere provider has been changed to incorporte code for checking "memory hot add (MemoryHotAddEnabled)" flag before taking reboot decision.
If "memory hot add (MemoryHotAddEnabled)" is set to true, then we do not reboot the VM.
If "memory hot add (MemoryHotAddEnabled)" is set to false, then we reboot(power off-->apply changes-->power on) the VM.
And memory change (reduce) operation always need VM reboot(power off-->apply changes-->power on).
CPU Hot Plug Fix
The terraform vsphere provider has been changed to incorporte code for checking "cpu hot add (CpuHotAddEnabled)" flag and "cpu hot remove (CpuHotRemoveEnabled)" flag before taking reboot decision.
If "cpu hot add (CpuHotAddEnabled)" and "cpu hot remove (CpuHotRemoveEnabled)" is set to true, then we do not reboot the VM.
If "cpu hot add (CpuHotAddEnabled)" and "cpu hot remove (CpuHotRemoveEnabled)" is set to false, then we reboot(power off-->apply changes-->power on) the VM.
Memory Hot Add Fix
The terraform vsphere provider has been changed to incorporte code for checking "memory hot add (MemoryHotAddEnabled)" flag before taking reboot decision.
And memory change (reduce) operation always need VM reboot(power off-->apply changes-->power on).
CPU Hot Plug Fix
The terraform vsphere provider has been changed to incorporte code for checking "cpu hot add (CpuHotAddEnabled)" flag and "cpu hot remove (CpuHotRemoveEnabled)" flag before taking reboot decision.