< Back

Get-AzureRmRecoveryServicesAsrRecoveryPlan

Tue Jan 29, 2019 10:01 pm

NAME Get-AzureRmRecoveryServicesAsrRecoveryPlan



SYNOPSIS

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





SYNTAX

Get-AzureRmRecoveryServicesAsrRecoveryPlan [[-Path] <String>] [-DefaultProfile <IAzureContextContainer>] -FriendlyName <String>

[<CommonParameters>]



Get-AzureRmRecoveryServicesAsrRecoveryPlan [[-Path] <String>] [-DefaultProfile <IAzureContextContainer>] -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.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with Azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-FriendlyName <String>

Specifies the friendly name of the recovery plan to get.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of the recovery plan to get.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Path <String>

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



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



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]]







NOTES









Example 1



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



Gets the recovery plan with the specified name.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... coveryplan

New-AzureRmRecoveryServicesAsrRecoveryPlan

Remove-AzureRmRecoveryServicesAsrRecoveryPlan

Update-AzureRmRecoveryServicesAsrRecoveryPlan