Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 229602

Re: PowerCLI script for deploying VMs via template using guest customizations

$
0
0

The New-VM cmdlet requires an additional parameter: a resourcepool, a vmhost or a vApp.

Are these new VM to be created in a cluster ? If yes, then you better use the resourcepool parameter

Like this for example:

    New-VM-Name"$name_$suffix"  Template$template-OSCustomizationSpec$oscust-ResourcePoolResources-Datastore$dsc-WhatIf-RunAsync

This will create the new VMs in the root of the cluster.


Viewing all articles
Browse latest Browse all 229602

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>