Automation

 View Only
  • 1.  vCenter Server High Availability PowerCLI

    Posted Feb 10, 2021 12:32 PM

    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



  • 2.  RE: vCenter Server High Availability PowerCLI

    Posted Feb 10, 2021 12:44 PM

    See William's VCHA module 



  • 3.  RE: vCenter Server High Availability PowerCLI

    Posted Feb 23, 2021 09:04 AM

    thank you very much i solved with your help



  • 4.  RE: vCenter Server High Availability PowerCLI

    Posted Nov 23, 2023 03:04 PM

    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



  • 5.  RE: vCenter Server High Availability PowerCLI

    Posted Nov 23, 2023 03:27 PM

    Does the solution provided in Issue#4 help?