Duties of the Automation Engineer
Based upon the preceding project, this book ideally tries to cover the Automation Engineer's task list, how to adapt the requirements gathering from the Service Architect, and how to script them. This section outlines the script process for building a VMware PowerCLI-based script, combining it with the Windows-based host PoSH script, and returning output.
Building the script
During the process detailed previously, there were three specific requirements:
200 VMs in a common VM-based folder
All servers must have the common NTPSync service running and be tested once per hour
All servers must have 10 GB of free space on the
C:
driveAll VMs must be in a common datastore
There is a need to determine whether the scripts can be run independently or must be part of the same script. There is no requirement to have them run together, so we will start with independent scripts for each requirement.
Mixing PowerCLI and standard PowerShell
The idea of running PowerCLI within an...