Unprotecting virtual machines
You can remove a virtual machine from a protection group using the Unprotect-SrmVM
function in the Meadowcroft.SRM
module. The syntax of the Unprotect-SrmVM
function is as follows:
Unprotect-SrmVM [-ProtectionGroup] <SrmProtectionGroup> [[-Vm]
<VirtualMachineImpl>] [[-VmView] <VirtualMachine>] [[-ProtectedVm]
<SrmProtectionGroupProtectedVm>] [<CommonParameters>]
The -ProtectionGroup
parameter is required.
In the following example, we will unprotect VM1
and remove it from the Protected VMs Protection Group
using the Unprotect-SrmVM
function from the Meadowcroft.SRM
module, with the following command:
PowerCLI C:\> Unprotect-SrmVM -ProtectionGroup $Srm
ProtectionGroup -VmView $VmView
The output of the preceding command is as follows:
Key : dr.replication.VmProtectionGroup.unprotectVms TaskMoRef : Task-dr.replication.VmProtectionGroup.unprotectVms59 Description : Name : UnprotectVms DescriptionId...