Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • PowerCLI Cookbook
  • Toc
  • feedback
PowerCLI Cookbook

PowerCLI Cookbook

By : Philip Brandon Sellers
4.8 (4)
close
PowerCLI Cookbook

PowerCLI Cookbook

4.8 (4)
By: Philip Brandon Sellers

Overview of this book

If you are a virtualization professional who wants to unleash the power of automation and combat the complexity of sprawling virtual environments, this book is ideal for you. This book will enhance your skills of administering VMware vSphere and vCloud Director with PowerCLI.
Table of Contents (13 chapters)
close
12
Index

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 the Get-DatastoreCluster, Get-Datastore, and Get-VM cmdlets. Once you have that list, you can update the DRS group to match. PowerCLI actually makes much more sense to update DRS groups through the native vCenter Client method.

The vCenter Client doesn...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete