Virtual machine disks provisioned via HashiCorp Terraform automation default to Thin Provisioned, even when the vCenter Server global or cluster-level default is set to Thick Provision Lazy Zeroed.
thin_provisioned attribute in the Terraform state file is set to true by default.The HashiCorp Terraform vSphere provider resource schema explicitly sets the thin_provisioned attribute to true by default. This explicit API parameter overrides the vCenter Server's global or cluster-level defaults during the provisioning process.
To enforce Thick Provision Lazy Zeroed allocation when using Terraform, use one of the following methods:
vsphere_virtual_machine resource block in the Terraform configuration.thin_provisioned and eagerly_scrub flags within the disk block.thin_provisioned = false and eagerly_scrub = false as shown in the following example:id of the storage policy.storage_policy_id within the disk block of the Terraform configuration:Note: Ensure that Terraform parameters align with the requirements of the assigned storage policy to avoid API-level deployment conflicts.
Support Boundary Note: Terraform providers are community-supported open-source projects. For issues specifically regarding provider logic or internal bugs, reports should be directed to the .