I wish to deploy a VM to a specific directory that I have created on the destined datastore.
Basically, on my datastore, I have directories "/Production", "/Dev", and "/Staging". I wish to run "New-VM" cmdlet to directly deploy VM's to a particular directory on the datastore side
The "option" -Location for "New-VM", applies to VM folders.
I have found this thread to be very usefull in creating the directory Creating new folder in a DataStore , but can't seem to find any reference on saving to specific datastore folders
The bad news, you can't with the New-VM cmdlet.
And afaik you can't even do that with the underlying API method CreateVM_Task
The only way I could see this being accomplished, is by
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
The bad news, you can't with the New-VM cmdlet.
And afaik you can't even do that with the underlying API method CreateVM_Task
The only way I could see this being accomplished, is by
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference