Get-​Azure​Site​Recovery​Recovery​Plan

Gets a recovery plan in Site Recovery.

Syntax

Get-AzureSiteRecoveryRecoveryPlan
   -Id <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]
Get-AzureSiteRecoveryRecoveryPlan
   -Name <String>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

The Get-AzureSiteRecoveryRecoveryPlan cmdlet gets a recovery plan in Azure Site Recovery.

Examples

Example 1: Get a recovery plan

PS C:\> Get-AzureSiteRecoveryRecoveryPlan
ID                            Name                          ServerId                      TargetServerId
--                            ----                          --------                      --------------
71de8ebc-1e9a-4242-aec3-ee... ContosoPlan                   4a94c4a9-c856-4577-afbd-36... 78facf56-b273-4941-82fd-cc...

This command gets information about the recovery plan for the current Azure Site Recovery vault.

Required Parameters

-Id

Specifies the ID 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

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

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