Sometimes when you change something to the vSphere HA configuration like an Advanced Option, you have to reconfigure vSphere HA on each host inside that particular cluster. You can do that by hand via the Reconfigure for vSphere HA.. option inside the vSphere (Web) Client:

Screenshot 2016-01-22 13.11.47

Or you can use the following PowerCLI one-liner to perform this step on every host inside that cluster.

Get-Cluster <clusterName | Get-VMhost | Sort Name | %{$_.ExtensionData.ReconfigureHostForDAS()}

Just change the to the name of the cluster en open PowerCLI, connect to the vCenter server and run the one-liner.

One thought on “PowerCLI: Reconfigure for vSphere HA

  1. Get-Cluster -Name $cluster | Get-VMhost | Sort-Object Name | %{$_.ExtensionData.ReconfigureHostForDAS()}

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.