Get-AzureSiteRecoveryRecoveryPlan
Gets a recovery plan in Site Recovery.
Note
The cmdlets referenced in this documentation are for managing legacy Azure resources that use Azure Service Manager (ASM) APIs. This legacy PowerShell module isn't recommended when creating new resources since ASM is scheduled for retirement. For more information, see Azure Service Manager retirement.
The Az PowerShell module is the recommended PowerShell module for managing Azure Resource Manager (ARM) resources with PowerShell.
Syntax
Default (Default)
Get-AzureSiteRecoveryRecoveryPlan
[-Profile <AzureSMProfile>]
[<CommonParameters>]
ById
Get-AzureSiteRecoveryRecoveryPlan
-Id <String>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
ByName
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.
Parameters
-Id
Specifies the ID of the recovery plan to get.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ById
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
Specifies the name of the recovery plan to get.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByName
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-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.
Parameter properties
Type: | AzureSMProfile |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.