Remove-​Azure​Rm​Site​Recovery​Recovery​Plan

Removes a site recovery plan from Site Recovery.

Syntax

Remove-AzureRmSiteRecoveryRecoveryPlan
      -Name <String>
      [<CommonParameters>]
Remove-AzureRmSiteRecoveryRecoveryPlan
      -RecoveryPlan <ASRRecoveryPlan>
      [<CommonParameters>]

Description

The Remove-AzureRmSiteRecoveryRecoveryPlan cmdlet removes a site recovery plan from the current Azure Site Recovery.

Examples

Example 1: Remove a recovery plan

PS C:\>$RecoveryPlan = Get-AzureRmSiteRecoveryRecoveryPlan 
PS C:\> Remove-AzureRmSiteRecoveryRecoveryPlan -RecoveryPlan $RecoveryPlan

The first command uses the Get-AzureRmSiteRecoveryRecoveryPlan cmdlet to get the Site Recovery plan, and then stores it in the $RecoveryPlan variable.

The second command removes the recovery plan in $RecoveryPlan.

Required Parameters

-Name

Specifies the name of the recovery plan that this cmdlet removes.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecoveryPlan

Specifies the recovery plan that this cmdlet removes.

Type:ASRRecoveryPlan
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False