Using native DRS rule cmdlets to manage KeepTogether and Separate rules

PowerCLI has a number of built-in cmdlets to manage DRS rules. These rules allow you to keep virtual machines together and ensure that they stay separated within a vSphere cluster.

A simple example of two virtual machines that should never coreside on the same host would be domain controllers. You want to ensure that all of your domain controllers are not running on the single host in case a physical server fails, so you will set a Separate rule.

A simple example of two virtual machines that should always coreside on the same host would be an application server and its database that handles gigabits of traffic per second. You can achieve better throughput and performance of ...

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.