< Back
New-AzureRmRecoveryServicesAsrRecoveryPlan
Post
NAME New-AzureRmRecoveryServicesAsrRecoveryPlan
SYNOPSIS
Creates an ASR recovery plan.
SYNTAX
New-AzureRmRecoveryServicesAsrRecoveryPlan -Azure [-Confirm] [-DefaultProfile <IAzureContextContainer>] -FailoverDeploymentModel {Classic |
ResourceManager} -Name <String> -PrimaryFabric <ASRFabric> -ReplicationProtectedItem <ASRReplicationProtectedItem[]> [-WhatIf] [<CommonParameters>]
New-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Name <String> -PrimaryFabric <ASRFabric>
-RecoveryFabric <ASRFabric> -ReplicationProtectedItem <ASRReplicationProtectedItem[]> [-WhatIf] [<CommonParameters>]
New-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Path <String> [-WhatIf] [<CommonParameters>]
DESCRIPTION
The New-AzureRmRecoveryServicesAsrRecoveryPlan cmdlet creates an Azure Site Recovery recovery plan in the Recovery Services vault.
A recovery plan gathers virtual machines belonging to an application into a unit to allow them to be recovered together.
PARAMETERS
-Azure [<SwitchParameter>]
Switch parameter to specify that the recovery location for recovery plan is Azure.
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
-FailoverDeploymentModel <String>
Specifies the failover deployment model (Classic or Resource Manager) of the replication protected items that will be part of this recovery
plan.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Name of the recovery plan.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Path <String>
Specifies the path to the recovery plan definition json file. A recovery plan definition json can be used to create the recovery plan.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrimaryFabric <ASRFabric>
Specifies the ASR fabric object for the primary ASR fabric of the replication protected items that will be part of this recovery plan.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-RecoveryFabric <ASRFabric>
Specifies the ASR fabric object for the recovery ASR fabric of the replication protected items that will be part of this recovery plan.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ReplicationProtectedItem <ASRReplicationProtectedItem[]>
The list of replication protected items to add to the first group of the recovery plan.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
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.ASRReplicationProtectedItem[]
OUTPUTS
System.Object
NOTES
Example 1
PS C:\\> $currentJob = New-AzureRmRecoveryServicesAsrRecoveryPlan -Name $RPName -PrimaryFabric $PrimaryFabric -RecoveryFabric $RecoveryFabric
-ReplicationProtectedItem $RPI
Starts the recovery plan creation operation with the specified parameters and returns the ASR job used to track the operation.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... coveryplan
Get-AzureRmRecoveryServicesAsrRecoveryPlan
Remove-AzureRmRecoveryServicesAsrRecoveryPlan
Update-AzureRmRecoveryServicesAsrRecoveryPlan
SYNOPSIS
Creates an ASR recovery plan.
SYNTAX
New-AzureRmRecoveryServicesAsrRecoveryPlan -Azure [-Confirm] [-DefaultProfile <IAzureContextContainer>] -FailoverDeploymentModel {Classic |
ResourceManager} -Name <String> -PrimaryFabric <ASRFabric> -ReplicationProtectedItem <ASRReplicationProtectedItem[]> [-WhatIf] [<CommonParameters>]
New-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Name <String> -PrimaryFabric <ASRFabric>
-RecoveryFabric <ASRFabric> -ReplicationProtectedItem <ASRReplicationProtectedItem[]> [-WhatIf] [<CommonParameters>]
New-AzureRmRecoveryServicesAsrRecoveryPlan [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Path <String> [-WhatIf] [<CommonParameters>]
DESCRIPTION
The New-AzureRmRecoveryServicesAsrRecoveryPlan cmdlet creates an Azure Site Recovery recovery plan in the Recovery Services vault.
A recovery plan gathers virtual machines belonging to an application into a unit to allow them to be recovered together.
PARAMETERS
-Azure [<SwitchParameter>]
Switch parameter to specify that the recovery location for recovery plan is Azure.
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
-FailoverDeploymentModel <String>
Specifies the failover deployment model (Classic or Resource Manager) of the replication protected items that will be part of this recovery
plan.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Name of the recovery plan.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Path <String>
Specifies the path to the recovery plan definition json file. A recovery plan definition json can be used to create the recovery plan.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrimaryFabric <ASRFabric>
Specifies the ASR fabric object for the primary ASR fabric of the replication protected items that will be part of this recovery plan.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-RecoveryFabric <ASRFabric>
Specifies the ASR fabric object for the recovery ASR fabric of the replication protected items that will be part of this recovery plan.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ReplicationProtectedItem <ASRReplicationProtectedItem[]>
The list of replication protected items to add to the first group of the recovery plan.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
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.ASRReplicationProtectedItem[]
OUTPUTS
System.Object
NOTES
Example 1
PS C:\\> $currentJob = New-AzureRmRecoveryServicesAsrRecoveryPlan -Name $RPName -PrimaryFabric $PrimaryFabric -RecoveryFabric $RecoveryFabric
-ReplicationProtectedItem $RPI
Starts the recovery plan creation operation with the specified parameters and returns the ASR job used to track the operation.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... coveryplan
Get-AzureRmRecoveryServicesAsrRecoveryPlan
Remove-AzureRmRecoveryServicesAsrRecoveryPlan
Update-AzureRmRecoveryServicesAsrRecoveryPlan