In my previous post I had 2 different scripts created, one to power on a VCF envrionment and a different script to shut down the VCF environment. But to simplify the process I’ve now combined the 2 individual scripts into a single one. And implemented a new required parameter when executing the script to control what action to take.
This script replaces the individual startup and shutdown scripts, and combines them into a single script instead. The script uses the same configuration file as previously, but by using a parameter when executing the script you can decide whether to Startup or Shutdown the VCF environment To perform a power on and or start up of VCF:
./Full-VCF-9-1-Start-Shutdown.ps1 -EnvConfigFile ./sample-variables.ps1 -Action Startup
To perform a power off and or shut down of VCF:
./Full-VCF-9-1-Start-Shutdown.ps1 -EnvConfigFile ./sample-variables.ps1 -Action Shutdown
You can find the script here:
