Once the CSV file is created, 2nd script builds the VM off the CSV and generates audit file after it completes the build. Also, it is huge waste of datastore space when you keep different versions of templates just because you have different CPU, RAM, or disk sizes. The script will resize CPU, RAM, Disk1 and Disk2 (or create new), puts it in to a folder or default folder, and puts the VM in to resource pool if you choose to do so. Enough talking and more screenshots.
Download the CSV Build GUI script HERE
Download the CSV Automated VM build script HERE
At the end of the build, it generates audit for VMs that were built by the script. I canceled the VM build that was on the screenshot... Screenshot below is from another test build that I ran.
Great scripts !
ReplyDeleteThank you Luc. Your contribution in PowerCLI community helped me a lot.
ReplyDeleteThe form looks very nice. What do you use to build the PowerShell GUI - Windows Form ?
ReplyDeleteKen.
I used Primalforms community edtion (free version) to build the GUI.
ReplyDeleteI am impressed with the amount of time you must have put into the GUI. I assume the CSV also enables you to deploy multiple servers from a loop. However, could multiple deployments work by sending the command string directly to VCenter using your GUI (altered with an additional "Deploy" button plus code - skipping the CSV)? Would that work ? Or would it force the user to wait for each single build to complete before you could start the next new VM ? Thanks.
ReplyDeleteWorked like a charm! Thanks! Is there anyway to add Static IP, Subnet Mask, and Default Gateway entries for static IPs?
ReplyDeleteHi Steven,
DeleteThanks for visiting my blog. With new job I have, I haven't had the chance to do much update. Adding static IP is no problem from the automation perspective. I do need to go back and tweak the .NET GUI to have IP field added. I can't promise when but I will add this it to my "to do list."
Is there a way to mass deploy or more than one vm at a time?
ReplyDeleteHi David,
ReplyDeleteI tried running this form however after logging to the vCenter it is not fecthing the cluster / ESXi ...
Any idea on this ???
Thanks
Mahesh
download KO ?
ReplyDelete