Was hoping someone could provide some assistance, I'm at the end of my googling ability unfortunately and am looking to do the following :
- Import a list of VMs from a CSV to be migrated to a new Datastore/datastore cluster
- Check the amount of free space on the DS *after* the server would be migrated (current datastore free space minus VM UsedSpace)
- Calculate the total space of the DS minus reserve (CapacityMB * .xx)
- If free space after migration is -ge capacity minus reserve do not migrate.
I've tried doing a few variations but it seems like the datastore and VM numbers are in different formats.
Thank you!