PowerCLIGoodies / DRSRule

PowerShell module with support for managing vSphere DRS Rules and Groups
29 stars 9 forks source link

DRSRule PowerShell module ReadMe

The DRSRule module allows you to work with all types of vSphere DRS rules. The module provides support for VM and VMHost groups. And, it works with affinity/anti-affinity VM rules and VM to VMHost rules.

Brief info on module

The module came from the need for DRS rule/group info gathering, exporting, and recreating. Initially there were some code blocks for exporting rule info and for importing again those rules, but things evolved into a module.

A couple of examples:

How to set up the DRSRule module for use:

Via the PowerShell Gallery and PowerShellGet:

Or, the "old", manual way:

Cmdlets in this module