< Back
New-AzureRmSiteRecoveryRecoveryPlan
Post
NAME New-AzureRmSiteRecoveryRecoveryPlan
SYNOPSIS
Creates a site recovery plan in Site Recovery.
SYNTAX
New-AzureRmSiteRecoveryRecoveryPlan -Azure [-DefaultProfile <IAzureContextContainer>] -FailoverDeploymentModel {Classic | ResourceManager} -Name
<String> -PrimaryFabric <ASRFabric> -ReplicationProtectedItem <ASRReplicationProtectedItem[]> [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan -Azure [-DefaultProfile <IAzureContextContainer>] -FailoverDeploymentModel {Classic | ResourceManager} -Name
<String> -PrimaryServer <ASRServer> -ProtectionEntityList <ASRProtectionEntity[]> [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan [-DefaultProfile <IAzureContextContainer>] -FailoverDeploymentModel {Classic | ResourceManager} -Name <String>
-PrimarySite <ASRSite> -ProtectionEntityList <ASRProtectionEntity[]> [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan [-DefaultProfile <IAzureContextContainer>] -Name <String> -PrimaryFabric <ASRFabric> -RecoveryFabric
<ASRFabric> -ReplicationProtectedItem <ASRReplicationProtectedItem[]> [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan [-DefaultProfile <IAzureContextContainer>] -Name <String> -PrimaryServer <ASRServer> -ProtectionEntityList
<ASRProtectionEntity[]> -RecoveryServer <ASRServer> [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan [-DefaultProfile <IAzureContextContainer>] -Path <String> [<CommonParameters>]
DESCRIPTION
The New-AzureRmSiteRecoveryRecoveryPlan cmdlet creates a recovery plan in Azure Site Recovery.
A recovery plan gathers virtual machines in a group for the purposes of failover and recovery.
PARAMETERS
-Azure [<SwitchParameter>]
Required? true
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>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Path <String>
Specifies the path of the recovery plan file.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrimaryFabric <ASRFabric>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrimaryServer <ASRServer>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrimarySite <ASRSite>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ProtectionEntityList <ASRProtectionEntity[]>
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-RecoveryFabric <ASRFabric>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-RecoveryServer <ASRServer>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ReplicationProtectedItem <ASRReplicationProtectedItem[]>
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
ASRProtectionEntity[]
Parameter 'ProtectionEntityList' accepts value of type 'ASRProtectionEntity[]' from the pipeline
ASRReplicationProtectedItem[]
Parameter 'ReplicationProtectedItem' accepts value of type 'ASRReplicationProtectedItem[]' from the pipeline
OUTPUTS
NOTES
Example 1: Add a recovery plan to a Site Recovery vault
PS C:\\>New-AzureRmSiteRecoveryRecoveryPlan -Path "C:\\Users\\Contoso\\Desktop\\RecoveryPlan.xml"
This command adds the recovery plan named RecoveryPlan.xml to the Azure Site Recovery vault.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... coveryplan
Get-AzureRmSiteRecoveryRecoveryPlan
Remove-AzureRmSiteRecoveryRecoveryPlan
Update-AzureRmSiteRecoveryRecoveryPlan
SYNOPSIS
Creates a site recovery plan in Site Recovery.
SYNTAX
New-AzureRmSiteRecoveryRecoveryPlan -Azure [-DefaultProfile <IAzureContextContainer>] -FailoverDeploymentModel {Classic | ResourceManager} -Name
<String> -PrimaryFabric <ASRFabric> -ReplicationProtectedItem <ASRReplicationProtectedItem[]> [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan -Azure [-DefaultProfile <IAzureContextContainer>] -FailoverDeploymentModel {Classic | ResourceManager} -Name
<String> -PrimaryServer <ASRServer> -ProtectionEntityList <ASRProtectionEntity[]> [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan [-DefaultProfile <IAzureContextContainer>] -FailoverDeploymentModel {Classic | ResourceManager} -Name <String>
-PrimarySite <ASRSite> -ProtectionEntityList <ASRProtectionEntity[]> [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan [-DefaultProfile <IAzureContextContainer>] -Name <String> -PrimaryFabric <ASRFabric> -RecoveryFabric
<ASRFabric> -ReplicationProtectedItem <ASRReplicationProtectedItem[]> [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan [-DefaultProfile <IAzureContextContainer>] -Name <String> -PrimaryServer <ASRServer> -ProtectionEntityList
<ASRProtectionEntity[]> -RecoveryServer <ASRServer> [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan [-DefaultProfile <IAzureContextContainer>] -Path <String> [<CommonParameters>]
DESCRIPTION
The New-AzureRmSiteRecoveryRecoveryPlan cmdlet creates a recovery plan in Azure Site Recovery.
A recovery plan gathers virtual machines in a group for the purposes of failover and recovery.
PARAMETERS
-Azure [<SwitchParameter>]
Required? true
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>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Path <String>
Specifies the path of the recovery plan file.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrimaryFabric <ASRFabric>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrimaryServer <ASRServer>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-PrimarySite <ASRSite>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ProtectionEntityList <ASRProtectionEntity[]>
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? false
-RecoveryFabric <ASRFabric>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-RecoveryServer <ASRServer>
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-ReplicationProtectedItem <ASRReplicationProtectedItem[]>
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
ASRProtectionEntity[]
Parameter 'ProtectionEntityList' accepts value of type 'ASRProtectionEntity[]' from the pipeline
ASRReplicationProtectedItem[]
Parameter 'ReplicationProtectedItem' accepts value of type 'ASRReplicationProtectedItem[]' from the pipeline
OUTPUTS
NOTES
Example 1: Add a recovery plan to a Site Recovery vault
PS C:\\>New-AzureRmSiteRecoveryRecoveryPlan -Path "C:\\Users\\Contoso\\Desktop\\RecoveryPlan.xml"
This command adds the recovery plan named RecoveryPlan.xml to the Azure Site Recovery vault.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... coveryplan
Get-AzureRmSiteRecoveryRecoveryPlan
Remove-AzureRmSiteRecoveryRecoveryPlan
Update-AzureRmSiteRecoveryRecoveryPlan