I am trying to find out whether there is a way to retrieve the disk sizes within a VM template and store it as a variable. I am designing a PowerCLI script that would benefit from taking this number into consideration.
It is an import-CSV script and currently the script is only able to weigh the total disk size in GB from the imported CSV file against the Datastore's hard disk size and I am running into problems maintaining a free-space buffer as a result.