O'Reilly logo

PowerCLI Cookbook by Philip Sellers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Updating the members of a VM DRS group

Returning back to the task of building a host and VM DRS groups, the MoRef in the previous recipe will be used extensively. The groups and their memberships will be created using object views, configuration specifications, and the MoRef of each VM that belongs to the group.

You might be wondering why should you create or maintain these types of groups from PowerCLI instead of through the GUI, if there aren't native cmdlets available to you. In PowerCLI, it is easy to assemble a group of objects in an object that meets the specific criteria. This is something you've been doing all throughout the book. You can take criteria such as "all VMs on datastores from storage array X" and easily search for them with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required