AssociateVms

This method associates one or more virtual machines with a vSphere Replication (VR) protection group. Before you can protect a virtual machine, it must first be associated with a protection group.

Synopsis

void associateVms(vim.VirtualMachine[] vms)

vms[] is an array of Virtual Machine objects to associate with.

Faults

  • vmodl.fault.NotSupported, if this protection group is not a VR group.
  • RuntimeFault
  • InvalidState, if a specified VM was already associated with another group.
  • vim.fault.ConcurrentAccess, if another operation has modified the object and the change version no longer matches.

Example for AssociateVms

void _service.AssociateVms(_svcPtGrp, VirtualMachine[] );