This is a sample script that I created to show how you might create a relatively complex virtual farm environment. The hypothetical requirements for this farm are:
- Add 10 ESX servers to a vCenter, one for each customer
- Create a resource pool for each customer
- Inside each of these, create a resource pool for each server role, and a specified number of virtual machines, based on previously-created VM templates
- 2 x proxy server
- 4 x web server
- 2 x app server
- 2 x database server
I hope you find the script useful!

@halr9000 What is the name of the used Wordpress plugin to display code readable on your website? I read it somewhere in one of your comments in a post but can’t find it anymore.
Grtz,
Vincent
This script was embedded using PoshCode.org. When you view a script, you’ll see that there is a snippet of html which can then be inserted into any webpage. Works pretty well.