New-​Azure​Rm​Site​Recovery​Recovery​Plan

Creates a site recovery plan in Site Recovery.

Syntax

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

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: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:ASRFabric
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PrimaryServer
Type:ASRServer
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PrimarySite
Type:ASRSite
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ProtectionEntityList
Type:ASRProtectionEntity[]
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-RecoveryFabric
Type:ASRFabric
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecoveryServer
Type:ASRServer
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ReplicationProtectedItem
Type:ASRReplicationProtectedItem[]
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False