VMware Cloud Community
DINUS1979
Enthusiast
Enthusiast

vCenter Server High Availability PowerCLI

Hi everyone,
i am making a script to shut down all my infrastructure including vsan.
Everything seems to be fine for now, I am taking small steps, I need it and I cannot find the command to change vCenter HA Mode from enabled to maintenance mode.
Can anyone help me?'
Thanks so much

Reply
0 Kudos
4 Replies
LucD
Leadership
Leadership

See William's VCHA module 


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

Reply
0 Kudos
DINUS1979
Enthusiast
Enthusiast

thank you very much i solved with your help
🙂 🙂

Tags (1)
Reply
0 Kudos
QuikJean
Contributor
Contributor

Hey Luc

Have you heard about the same module but working with .Net core ?

I have tried from my mac and it fails with this kind of error... Same from PowerShell 7... but it does work from PowerShell 5 :

Add-Type: (4,44): error CS0246: The type or namespace name 'ICertificatePolicy' could not be found (are you missing a using
directive or an assembly reference?) public class IDontCarePolicy : ICertificatePolicy {
^
Add-Type: Cannot add type. Compilation errors occurred.
New-Object: Cannot find type [IDontCarePolicy]: verify that the assembly containing this type is loaded.
Invoke-RestMethod: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch,
RemoteCertificateChainErrors
InvalidOperation: You cannot call a method on a null-valued expression.

 

It's really handy to have it. I have to maintain more than 15 vcenters with HA config.. and each time there is an upgrade HA is to be killed and then reset.

 

Thanks

Reply
0 Kudos
LucD
Leadership
Leadership

Does the solution provided in Issue#4 help?


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

Reply
0 Kudos