I haven’t written a blog post in forever, been busy with a big vSphere 6.0 distributed deployment.
Part of the vSphere 6 deployment i had to migrate DRS rules from a windows based vCenter deployment to a VCSA based deployment and copying all your DRS rules across can be a tedious process. I had a plethora of DRS rules to migrate across multiple clusters and was not looking forward to creating all the rules manually. Luckily Luc Dekens and Matt Boren put together a DRSRule module which made the task easy. More info about the module can be found here.
I have put together a PowerShell script that will migrate all the rules for you.
Note : Updated to Import-Module and not PSSnapin for PowerCli 6.5.x
Created on: 2016/10/21 11:28 AM
Created by: Xana Cloete
IMPORTANT !! - The script assumes that the source cluster and destination cluster have the same name.
This script will retrieve all the specified cluster DRS information from the old vCenter management server and copy them to the new destination vCenter management server.
Tested DRS rule migration from vCenter 5.5 (Windows Deployment) to vCenter 6.0 (Distributed appliance deployment)
Ensure the powershell module "DRSRule" is installed. Follow DRSRule install guide. Run script from within PowerCLI