You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
Do not leave "+1" or other comments that do not add relevant information or questions.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Terraform
1.4.2
Terraform Provider
v1.26.0
VMware vSphere
v7.0.3
Description
We would like to change disk configuration on VMs: decrease disk size and switch from thin to thick.
Terraform destroy perform plan first which errors for both cases.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Guidelines
Terraform
1.4.2
Terraform Provider
v1.26.0
VMware vSphere
v7.0.3
Description
We would like to change disk configuration on VMs: decrease disk size and switch from thin to thick.
Terraform destroy perform
plan
first which errors for both cases.https://github.com/hashicorp/terraform-provider-vsphere/blob/main/vsphere/internal/virtualdevice/virtual_machine_disk_subresource.go#L1461-L1476
Since our intention is not to change the resource but rather to destroy+deploy new one, is there any solution to perform this?
Affected Resources or Data Sources
resource/vsphere_virtual_machine
Terraform Configuration
Change is
size
andthin_provisioned = false
Debug Output
Error: disk.0: virtual disk "disk0": cannot change the value of "thin_provisioned" - (old: true new: false)
Error: disk.0: virtual disk "disk0": virtual disks cannot be shrunk (old: 64 new: 60)
Panic Output
No response
Expected Behavior
Destroy works
Actual Behavior
Destroy fails
Steps to Reproduce
Environment Details
No response
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: