When using the new-vm powercli cmdlet, is there a way to use the advanced datastore option as is you were doing it from the GUI. We place our configuration file and harddisk on one LUN and a disk to use for swap on another LUN.
unforunately using the -Datastore option if just places all disks in the same datastore.
Does anyone else have this requirement? And developed any workarounds?
New-VM -Name $vmname -Template $template -Datastore $datastore -VMHost $vmhost | Set-VM -OSCustomizationSpec $custspec -Confirm:$false