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
Get-AzureSiteRecoveryRecoveryPlan
[-Profile <AzureSMProfile>]
[<CommonParameters>]
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.
Parameters
-Id
Specifies the ID of the recovery plan to get.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
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 |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | 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.
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |