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
See William's VCHA module
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
thank you very much i solved with your help
🙂 🙂
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
Does the solution provided in Issue#4 help?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference