Chapter 9. Managing DRS and Affinity Groups using PowerCLI

In this chapter, you will cover the following topics:

  • Applying recommendations for partially automated DRS clusters
  • Setting a cluster into maintenance mode with PowerCLI
  • Using native DRS rule cmdlets to manage KeepTogether and Separate rules
  • Learning the MoRef way of identifying objects
  • Creating a DRS group for virtual machines
  • Listing the members of a DRS group
  • Updating the members of a VM DRS group
  • Creating a custom function to update members of a DRS group
  • Creating rules to maintain memberships of DRS groups using a custom function
  • Using Compare-Object to audit group memberships for differences

Introduction

The Distributed Resource Scheduler (DRS) feature of vSphere offers administrators a hands-off ...

Get PowerCLI Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.