New-AzureRmSiteRecoveryRecoveryPlan

Creates a site recovery plan in Site Recovery.

Syntax

New-AzureRmSiteRecoveryRecoveryPlan
   -Name <String>
   -PrimaryFabric <ASRFabric>
   -RecoveryFabric <ASRFabric>
   -ReplicationProtectedItem <ASRReplicationProtectedItem[]>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan
   -Name <String>
   -PrimaryFabric <ASRFabric>
   [-Azure]
   -FailoverDeploymentModel <String>
   -ReplicationProtectedItem <ASRReplicationProtectedItem[]>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan
   -Name <String>
   -PrimaryServer <ASRServer>
   -RecoveryServer <ASRServer>
   -ProtectionEntityList <ASRProtectionEntity[]>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan
   -Name <String>
   [-Azure]
   -FailoverDeploymentModel <String>
   -PrimaryServer <ASRServer>
   -ProtectionEntityList <ASRProtectionEntity[]>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan
   -Name <String>
   -FailoverDeploymentModel <String>
   -PrimarySite <ASRSite>
   -ProtectionEntityList <ASRProtectionEntity[]>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzureRmSiteRecoveryRecoveryPlan
   -Path <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<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.

Examples

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.

Required Parameters

-Azure
Type:System.Management.Automation.SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FailoverDeploymentModel
Type:String
Parameter Sets:Classic, ResourceManager
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Path

Specifies the path of the recovery plan file.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PrimaryFabric
Type:Microsoft.Azure.Commands.SiteRecovery.ASRFabric
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PrimaryServer
Type:Microsoft.Azure.Commands.SiteRecovery.ASRServer
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PrimarySite
Type:Microsoft.Azure.Commands.SiteRecovery.ASRSite
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ProtectionEntityList
Type:Microsoft.Azure.Commands.SiteRecovery.ASRProtectionEntity[]
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-RecoveryFabric
Type:Microsoft.Azure.Commands.SiteRecovery.ASRFabric
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecoveryServer
Type:Microsoft.Azure.Commands.SiteRecovery.ASRServer
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ReplicationProtectedItem
Type:Microsoft.Azure.Commands.SiteRecovery.ASRReplicationProtectedItem[]
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ASRProtectionEntity[]

Parameter 'ProtectionEntityList' accepts value of type 'ASRProtectionEntity[]' from the pipeline

Inputs

ASRReplicationProtectedItem[]

Parameter 'ReplicationProtectedItem' accepts value of type 'ASRReplicationProtectedItem[]' from the pipeline