tinchito7
Contributor
Contributor

Configure vSphere Replication (+ SRM) for VMs with PowerCLI

Hi community!

I've been tasked with mass-configuring replication of our critical VMs to our DR site using vSphere Replication.

Since there is no way I'm going to do this for ~250 VMs, I was wondering if anyone written/found a script that takes a VM, configures VR to it and adds it to a Protection Group for SRM ?

This will be terribly helpful.

Thanks!

0 Kudos
5 Replies
LucD
Leadership
Leadership

Mark did a post on that a while back, see Wednesday Tidbit: Protect a VM using SRM and PowerCLI


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
tinchito7
Contributor
Contributor

Hi Luc,

I came across that post-

Sadly, it only covers one part of the equation: adding the VM to a Protection Group.

It doesn't cover the vSphere Replication configuration for the VM.

0 Kudos
LucD
Leadership
Leadership

Then you might want to have a look at Ben's SRM-cmdlets module.
His New-ProtectionGroup and Protect-VM functions might help.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
tinchito7
Contributor
Contributor

Saw Ben's cmdlets as well.

Same issue, he also states :

For vSphere Replication based protection, the VMs to add to the replication
group. These should already be replicated.
0 Kudos
LucD
Leadership
Leadership

Then I'm afraid you will have to dive into the API yourself.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos