VMware Cloud Community
ProjectD22
Enthusiast
Enthusiast
Jump to solution

VMWare PowerCli DrsClusterGroup

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

pastedImage_4.png

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.

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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


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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

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


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

0 Kudos
ProjectD22
Enthusiast
Enthusiast
Jump to solution

It's working now. Thank you!

0 Kudos