Get-​Azure​Rm​Recovery​Services​Asr​Recovery​Plan

Gets a recovery plan or all the recovery plans in the Recovery Services vault

Syntax

Get-AzureRmRecoveryServicesAsrRecoveryPlan
   [[-Path] <String>]
   -FriendlyName <String>
   [<CommonParameters>]
Get-AzureRmRecoveryServicesAsrRecoveryPlan
   [[-Path] <String>]
   -Name <String>
   [<CommonParameters>]

Description

The Get-AzureRmRecoveryServicesAsrRecoveryPlan cmdlet gets the details of the specified recovery plan or all recovery plans in the Recovery Services vault.

Examples

Example 1

PS C:\> $RP = Get-AzureRmRecoveryServicesAsrRecoveryPlan -Name $RPName

Gets the recovery plan with the specified name.

Required Parameters

-FriendlyName

Specifies the friendly name of the recovery plan to get.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the recovery plan to get.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Path

Specifies the file path to which this cmdlet saves the recovery plan json definition. The json definition can be edited to modify the recovery plan and used to update the recovery plan through the Update-AzureRmRecoveryServicesASRRecoveryPlan cmdlet

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Collections.Generic.IEnumerable`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan, Microsoft.Azure.Commands.RecoveryServices.SiteRecovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null]]