As some of you may know, I have been spending some time with the new vCenter Server High Availability (VCHA) feature that was introduced in vSphere 6.5. In fact, I had even published an article a few weeks back on how to enable the new vCenter Server High Availability (VCHA) feature with only a single ESXi host which allowed me to explore some of the new VCHA APIs without needing a whole lot of resources to start with, obviously, you would not do this in production 🙂
For those of you who are not familiar with the new VCHA feature which is only available with the vCenter Server Appliance (VCSA), Feidhlim O'Leary has an excellent write up that goes over the details and even provides demo videos covering both the "Basic" and "Advanced" workflows of VCHA. I highly recommend you give his blog post a read before moving forward as this article will assume you understand how VCHA works.
In playing with the new VCHA APIs, I decided to create a few VCHA functions which I thought would be useful to have as a PowerCLI module for others to use and also try out. With that, I have published my VCHA.psm1 module on the PowerCLI Community Repo on Github which includes the following functions:
|Get-VCHAConfig||Retrieves the VCHA Configuration|
|Get-VCHAClusterHealth||Retrieve the VCHA Cluster Health|
|Set-VCHAClusterMode||Sets the VCHA Cluster Mode (Enable/Disable/Maintenance)|
|New-VCHABasieConfig||Creates a new "Basic" VCHA Cluster|
|Remove-VCHACluster||Destroys a VCHA Cluster|