< Back
Remove-AzureRmRecoveryServicesAsrRecoveryPlan
Post
NAME Remove-AzureRmRecoveryServicesAsrRecoveryPlan
SYNOPSIS
Deletes the specified ASR recovery plan from Recovery Services vault.
SYNTAX
Remove-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -InputObject <ASRRecoveryPlan> [-WhatIf]
[<CommonParameters>]
Remove-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Name <String> [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Remove-AzureRmRecoveryServicesAsrRecoveryPlan cmdlet deletes the specified recovery plan from the Recovery Services vault.
PARAMETERS
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-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
-InputObject <ASRRecoveryPlan>
The input object to the cmdlet: The ASR recovery plan object corresponding to the recovery plan to be deleted.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Name <String>
Specifies the name of the recovery plan to be deleted.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
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
Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan
OUTPUTS
System.Object
NOTES
Example 1
PS C:\\> $currentJob = Remove-AzureRmRecoveryServicesAsrRecoveryPlan -RecoveryPlan $RP
Starts the deletion of specified recovery plan and returns the ASR job used to track the operation.
RELATED LINKS
Online Version:
https://docs.microsoft.com/en-us/powers ... coveryplan
Get-AzureRmRecoveryServicesAsrRecoveryPlan
New-AzureRmRecoveryServicesAsrRecoveryPlan
Update-AzureRmRecoveryServicesAsrRecoveryPlan
SYNOPSIS
Deletes the specified ASR recovery plan from Recovery Services vault.
SYNTAX
Remove-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -InputObject <ASRRecoveryPlan> [-WhatIf]
[<CommonParameters>]
Remove-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Name <String> [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Remove-AzureRmRecoveryServicesAsrRecoveryPlan cmdlet deletes the specified recovery plan from the Recovery Services vault.
PARAMETERS
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-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
-InputObject <ASRRecoveryPlan>
The input object to the cmdlet: The ASR recovery plan object corresponding to the recovery plan to be deleted.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-Name <String>
Specifies the name of the recovery plan to be deleted.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
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
Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan
OUTPUTS
System.Object
NOTES
Example 1
PS C:\\> $currentJob = Remove-AzureRmRecoveryServicesAsrRecoveryPlan -RecoveryPlan $RP
Starts the deletion of specified recovery plan and returns the ASR job used to track the operation.
RELATED LINKS
Online Version:
https://docs.microsoft.com/en-us/powers ... coveryplan
Get-AzureRmRecoveryServicesAsrRecoveryPlan
New-AzureRmRecoveryServicesAsrRecoveryPlan
Update-AzureRmRecoveryServicesAsrRecoveryPlan