Some automation scripts written using VMware vSphere Automation SDK for Python.
This library creates automation scripts based on VMware vSphere Automation SDK for Python
It provides the basis for how to efficiently automate the management of VMware vSphere, including A quick way to refresh STS certificates, SSL certificates, how to automate bulk VM creation, deletion, migration, bulk add, delete, connect, disconnect ESXi hosts, etc.
Download the scripts and cd to the directory where the script is located.
run script
python script_name.py
Enter the IP or FQDN of vCenter Server, the administrator account and password of the SSO domain.(This is a version 2 feature, currently in version 1)