< Back
Edit-AzureRmRecoveryServicesAsrRecoveryPlan
Post
NAME Edit-AzureRmRecoveryServicesAsrRecoveryPlan
SYNOPSIS
Edits a Site Recovery plan.
SYNTAX
Edit-AzureRmRecoveryServicesAsrRecoveryPlan -AddProtectedItem <ASRReplicationProtectedItem[]> [-Confirm] [-DefaultProfile
<IAzureContextContainer>] -Group <ASRRecoveryPlanGroup> -InputObject <ASRRecoveryPlan> [-WhatIf] [<CommonParameters>]
Edit-AzureRmRecoveryServicesAsrRecoveryPlan -AppendGroup [-Confirm] [-DefaultProfile <IAzureContextContainer>] -InputObject <ASRRecoveryPlan>
[-WhatIf] [<CommonParameters>]
Edit-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Group <ASRRecoveryPlanGroup> -InputObject
<ASRRecoveryPlan> -RemoveProtectedItem <ASRReplicationProtectedItem[]> [-WhatIf] [<CommonParameters>]
Edit-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -InputObject <ASRRecoveryPlan> -RemoveGroup
<ASRRecoveryPlanGroup> [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Edit-AzureRmRecoveryServicesAsrRecoveryPlan cmdlet edits an Azure Site Recovery plan.
PARAMETERS
-AddProtectedItem <ASRReplicationProtectedItem[]>
List of ASR replication protected items to be added to the recovery plan group in the recovery plan object.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-AppendGroup [<SwitchParameter>]
Switch parameter to append a recovery plan group to the recovery plan object.
Required? true
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-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
-Group <ASRRecoveryPlanGroup>
Specifies a recovery plan group.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-InputObject <ASRRecoveryPlan>
The ASR recovery plan object to be edited (In memory operation. To update the recovery plan run Update-AzureRmASRRecoveryPlan with the edited
recovery plan object.)
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-RemoveGroup <ASRRecoveryPlanGroup>
Removes the specified group from the recovery plan object.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-RemoveProtectedItem <ASRReplicationProtectedItem[]>
List of ASR replication protected items to be removed from the recovery plan group in the recovery plan object.
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:\\> $RP = Edit-AzureRmRecoveryServicesAsrRecoveryPlan -RecoveryPlan $RP -AppendGroup
Appends a group to existing Azure Site Recovery recovery plan and returns the in-memory updated recovery plan.
RELATED LINKS
Online Version:
https://docs.microsoft.com/en-us/powers ... coveryplan
Get-AzureRmRecoveryServicesAsrRecoveryPlan
New-AzureRmRecoveryServicesAsrRecoveryPlan
SYNOPSIS
Edits a Site Recovery plan.
SYNTAX
Edit-AzureRmRecoveryServicesAsrRecoveryPlan -AddProtectedItem <ASRReplicationProtectedItem[]> [-Confirm] [-DefaultProfile
<IAzureContextContainer>] -Group <ASRRecoveryPlanGroup> -InputObject <ASRRecoveryPlan> [-WhatIf] [<CommonParameters>]
Edit-AzureRmRecoveryServicesAsrRecoveryPlan -AppendGroup [-Confirm] [-DefaultProfile <IAzureContextContainer>] -InputObject <ASRRecoveryPlan>
[-WhatIf] [<CommonParameters>]
Edit-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Group <ASRRecoveryPlanGroup> -InputObject
<ASRRecoveryPlan> -RemoveProtectedItem <ASRReplicationProtectedItem[]> [-WhatIf] [<CommonParameters>]
Edit-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -InputObject <ASRRecoveryPlan> -RemoveGroup
<ASRRecoveryPlanGroup> [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Edit-AzureRmRecoveryServicesAsrRecoveryPlan cmdlet edits an Azure Site Recovery plan.
PARAMETERS
-AddProtectedItem <ASRReplicationProtectedItem[]>
List of ASR replication protected items to be added to the recovery plan group in the recovery plan object.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-AppendGroup [<SwitchParameter>]
Switch parameter to append a recovery plan group to the recovery plan object.
Required? true
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-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
-Group <ASRRecoveryPlanGroup>
Specifies a recovery plan group.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-InputObject <ASRRecoveryPlan>
The ASR recovery plan object to be edited (In memory operation. To update the recovery plan run Update-AzureRmASRRecoveryPlan with the edited
recovery plan object.)
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-RemoveGroup <ASRRecoveryPlanGroup>
Removes the specified group from the recovery plan object.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-RemoveProtectedItem <ASRReplicationProtectedItem[]>
List of ASR replication protected items to be removed from the recovery plan group in the recovery plan object.
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:\\> $RP = Edit-AzureRmRecoveryServicesAsrRecoveryPlan -RecoveryPlan $RP -AppendGroup
Appends a group to existing Azure Site Recovery recovery plan and returns the in-memory updated recovery plan.
RELATED LINKS
Online Version:
https://docs.microsoft.com/en-us/powers ... coveryplan
Get-AzureRmRecoveryServicesAsrRecoveryPlan
New-AzureRmRecoveryServicesAsrRecoveryPlan