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

Gets ASR replication policies.

Syntax

Get-AzureRmRecoveryServicesAsrPolicy
   -FriendlyName <String>
   [<CommonParameters>]
Get-AzureRmRecoveryServicesAsrPolicy
   -Name <String>
   [<CommonParameters>]

Description

The Get-AzureRmRecoveryServicesAsrPolicy cmdlet gets the list of configured Azure Site Recovery replication policies or a specific replication policy by name.

Examples

Example 1

PS C:\> $Policy = Get-AzureRmRecoveryServicesAsrPolicy -Name $PolicyName

Retruns the replication policy with the specified name.

Required Parameters

-FriendlyName

Specifies the friendly name of the ASR replication policy.

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

Specifies the name of the ASR replication policy.

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

Inputs

None

Outputs

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