VMware Cloud Community
sivagndl
Enthusiast
Enthusiast

Disable HA and ProactiveHA via PowerCLI

Greetings all...

I am looking for a way to disable/enable HA and ProactiveHA via PowerCLI via powercli.

I hava found LucD's one-liner for HA disable/enable : Get-Cluster | Set Cluster - HAEnabled:$false

I want to be able to quickly disable/enable HA and ProactiveHA via PowerCLI via powercli all-together.

Any Ideas !

Thanks...

0 Kudos
4 Replies
LucD
Leadership
Leadership

For the Proactive HA have a look at William's ProactiveHA module.

The accompanying post is PowerCLI module for Proactive HA (including simulation)


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
sebin_j
Contributor
Contributor

Using the script by William, the provider is removed, but Proactive HA status shows as turned ON only. How to turn it off through powercli? Or do we have any rest api to turn it off?

0 Kudos
StuDuncanHPE
Enthusiast
Enthusiast

You'd think it would be part of the HA config spec:

https://vdc-download.vmware.com/vmwb-repository/dcr-public/9fd87c06-14a3-41e5-b28d-277864a80f29/d611...

But it doesn't look like it is.

Tags (1)
0 Kudos
sebin_j
Contributor
Contributor

@LucD Any solution?

0 Kudos