As I have previously mentioned, working for an SMB and making up an Infrastructure Team of one can pose some unique challenges.
I was recently asked if I could spin up a number of VMs for a new Dev/Test environment for our Development Team.
This environment would require a number of groups of VMs running Microsoft Application Request Routing (ARR), Microsoft Internet Information Services (IIS), or Microsoft SQL Server.
I had been playing with VMware vSphere PowerCLI
for things like moving all the VMs from one host to another for host maintenance as I don't have access to DRS or SDRS, but I hadn't done much more with it than that up to this point. Since I also do not have access to VMware vRealize Automation
, I thought I would try creating a PowerCLI script to accomplish this task and to give myself a baseline for future automated deployments of multiple VMs.
Here is my first go at the script.