Remove-AzureRmSiteRecoveryRecoveryPlan

Removes a site recovery plan from Site Recovery.

Syntax

Remove-AzureRmSiteRecoveryRecoveryPlan
      -RecoveryPlan <ASRRecoveryPlan>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]
Remove-AzureRmSiteRecoveryRecoveryPlan
      -Name <String>
      [-DefaultProfile <IAzureContextContainer>]
      [<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:Microsoft.Azure.Commands.SiteRecovery.ASRRecoveryPlan
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ASRRecoveryPlan

Parameter 'RecoveryPlan' accepts value of type 'ASRRecoveryPlan' from the pipeline