PowerCLI

  • 1.  Powercli ha configuration

    Posted Feb 15, 2021 02:08 PM

    Hi,

     

    Is it possible to configurate ha option like APD, PDL, host isolate in power cli?

    I have tried:

    Get-Cluster -name $cluster | Set-VMCPSettings -enableVMCP:$true -VmStorageProtectionForPDL restartAggressive -VmStorageProtectionForAPD restartConservative -VmReactionOnAPDCleared none -Confirm:$false

    Bu it doesn't work.



  • 2.  RE: Powercli ha configuration

    Posted Feb 15, 2021 02:23 PM

    The Set-VMCPSettings function is not an official function afaik, but a community contribution (from 2015).

    You will have to give a bit more info than just " it doesn't work".
    Do you see any settings being changed in the cluster when you check via the WebClient?
    Do you get any error messages?

    There are currently no official PowerCLI cmdlets for that functionality, but you can call, like that community function, the API method directly from PowerCLI.