This is my first time asking a question on here, so please be gentle...
I have an automated process that deploys VMs in VMware from a template (using powercli) and it cannot deploy if the storage policy of the template is not supported by the cluster where the new VM is to be built. I am trying to work out a process by which the template (including its disks) would use the default storage policy of the target cluster whenever the template is deployed.
The command used to deploy is currently:
new-vm -resourcepool $VMWARE_CLUSTER -name $VIRTUAL_SERVER_NAME -template $TEMPLATE -Datastore $Datastore -DiskStorageFormat $disktype
I am not particularly proficient in powershell or powercli as I am a Linux sys admin, but I'm keen to learn.