To ensure business continuity and facilitate efficient disaster recovery for your virtual machines, you create a recovery plan for a protection group in a given pairing.

Prerequisites

Procedure

  1. Create the recovery plan spec.
    $recPlanSpec = Initialize-SrmRecoveryPlanCreateSpec `
        -Name "<myRecoveryPlanName>" `
        -ProtectedVcGuid $srmConnection.ConnectedPairing.LocalVcServer.Id `
        -ProtectionGroups $protectionGroup.Id
  2. Create the recovery plan task.
    $task = Invoke-SrmCreatePlan -PairingId $srmConnection.ConnectedPairing.PairingId `
        -RecoveryPlanCreateSpec $recPlanSpec
  3. Monitor the task progress.
    $task = Invoke-SrmGetTaskInfo -TaskId $task.Id

    Eventually, the task status changes to SUCCESS.

  4. (Optional) Retrieve the recovery plan you created.
    $recoveryPlan = Invoke-SrmGetRecoveryPlan -PairingId $srmConnection.ConnectedPairing.PairingId `
    -PlanId $task.Result