< Back
Remove-AzureRmSiteRecoveryRecoveryPlan
Post
NAME Remove-AzureRmSiteRecoveryRecoveryPlan
SYNOPSIS
Removes a site recovery plan from Site Recovery.
SYNTAX
Remove-AzureRmSiteRecoveryRecoveryPlan [-DefaultProfile <IAzureContextContainer>] -Name <String> [<CommonParameters>]
Remove-AzureRmSiteRecoveryRecoveryPlan [-DefaultProfile <IAzureContextContainer>] -RecoveryPlan <ASRRecoveryPlan> [<CommonParameters>]
DESCRIPTION
The Remove-AzureRmSiteRecoveryRecoveryPlan cmdlet removes a site recovery plan from the current Azure Site Recovery.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the recovery plan that this cmdlet removes.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-RecoveryPlan <ASRRecoveryPlan>
Specifies the recovery plan that this cmdlet removes.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
ASRRecoveryPlan
Parameter 'RecoveryPlan' accepts value of type 'ASRRecoveryPlan' from the pipeline
OUTPUTS
NOTES
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.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... coveryplan
Get-AzureRmSiteRecoveryRecoveryPlan
New-AzureRmSiteRecoveryRecoveryPlan
Update-AzureRmSiteRecoveryRecoveryPlan
SYNOPSIS
Removes a site recovery plan from Site Recovery.
SYNTAX
Remove-AzureRmSiteRecoveryRecoveryPlan [-DefaultProfile <IAzureContextContainer>] -Name <String> [<CommonParameters>]
Remove-AzureRmSiteRecoveryRecoveryPlan [-DefaultProfile <IAzureContextContainer>] -RecoveryPlan <ASRRecoveryPlan> [<CommonParameters>]
DESCRIPTION
The Remove-AzureRmSiteRecoveryRecoveryPlan cmdlet removes a site recovery plan from the current Azure Site Recovery.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the recovery plan that this cmdlet removes.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-RecoveryPlan <ASRRecoveryPlan>
Specifies the recovery plan that this cmdlet removes.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
ASRRecoveryPlan
Parameter 'RecoveryPlan' accepts value of type 'ASRRecoveryPlan' from the pipeline
OUTPUTS
NOTES
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.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... coveryplan
Get-AzureRmSiteRecoveryRecoveryPlan
New-AzureRmSiteRecoveryRecoveryPlan
Update-AzureRmSiteRecoveryRecoveryPlan