Is your feature request related to a problem? Please describe.
I try to generate a Terraform template to dynamically run 10 to 100 Windows VMs.
So now when I decrease the number of VMs, the terraform plan say that all VMs will be destroyed because of "guest_customization_sysprep" and create the new amount as new VMs and run sysprep.
Describe the solution you'd like
If I change the number of VMs in a task, only the VMs that are over the count should be destroyed and not the ones that are already fine and run.
have you tried using the for_each meta arguments, I assume you are using count and the change in vm count is messing up the indexing in the tf_state file.
Is your feature request related to a problem? Please describe. I try to generate a Terraform template to dynamically run 10 to 100 Windows VMs. So now when I decrease the number of VMs, the terraform plan say that all VMs will be destroyed because of "guest_customization_sysprep" and create the new amount as new VMs and run sysprep.
Describe the solution you'd like If I change the number of VMs in a task, only the VMs that are over the count should be destroyed and not the ones that are already fine and run.