PowerCLI

 View Only
  • 1.  VMWare PowerCli DrsClusterGroup

    Posted Dec 06, 2017 02:14 PM

    Hi there!

    I need to set a drs group to 200+ VMs. I'm not going to do this by hand, obviously.

    So I tried to set a drs group on just one VM but it failed.

    Here's the line:

    Set-DrsClusterGroup -DrsClusterGroup "le" -VM "SRV161" –Add

    Here are the error-messages

    Some more informations:

    Powerclient version -> 6.5.4

    PowerClient is connected to a vCenter Server

    There are 8 Clusters. All of the drs groups are named equally in every cluster. They are named le and wi.

    The VM SRV161 does exist.

    What am I doing wrong?

    Thank you in advance.



  • 2.  RE: VMWare PowerCli DrsClusterGroup
    Best Answer

    Posted Dec 06, 2017 05:20 PM

    Can you try like this?

    If you don't specify the cluster, you get all groups with that name.

    And Set-DrsClusterGroup only accepts one group.

    Get-DrsClusterGroup -Cluster cluster1 -Name le | Set-DrsClusterGroup -Add -VM srv161



  • 3.  RE: VMWare PowerCli DrsClusterGroup

    Posted Dec 12, 2017 06:22 AM

    It's working now. Thank you!