I’m trying to create a virtual machine with powercli and i want the disk to be Thin provisioned.
When i execute the command
New-VM -Name test -DiskGB 32 -MemoryGB 2 -NumCpu 1 -DiskStorageFormat Thin -Datastore FS_CLUSTERTEST_VMWARE -ResourcePool test-pool
The virtual machine is created, no errors in the output but the disk created is Thick Provision Eager Zeroed.
I searched on internet for a solution but i found nothing, what did i do wrong ?
I tested on VCenter 7, PowerCLI 12.2.0 & powershell 7.1.3 running on linux.
I also tried
Get-HardDisk test | Move-HardDisk -StorageFormat Thin -Datastore FS_CLUSTERTEST_VMWARE
but the disk doesn’t change and stays "Thick Provision Eager Zeroed".
Thanks in advance.