Powershell VM-New

I am trying to setup an automation script to read from a file and create 10-20 VMs at a time. I am not haveing issue getting the information for the script, or the syntax, but I am curious how you create a VM in a specific Cluster within a Datacaenter. I have multiple datacenters and clusters, and I need to create the vms in the correct location. With the new-vm command, it does not give you an option to specify a cluster, it is looking for a specific host.

I am sorry if this has been asked beofre, but I did search around the forums and web and could not find the answer to a specific cluster installation.


0 Kudos
1 Reply
Community Manager
Community Manager

You may want to post your question in the PowerCLI specific community -


William Lam

VMware vExpert 2009,2010

VMware scripts and resources at:

Twitter: @lamw

Getting Started with the vMA (tips/tricks)

Getting Started with the vSphere SDK for Perl

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos