< Back

Get-AzureRmSiteRecoveryPolicy

Thu Apr 04, 2019 5:40 am

NAME Get-AzureRmSiteRecoveryPolicy



SYNOPSIS

Gets Site Recovery protection policies.





SYNTAX

Get-AzureRmSiteRecoveryPolicy [-DefaultProfile <IAzureContextContainer>] -FriendlyName <String> [<CommonParameters>]



Get-AzureRmSiteRecoveryPolicy [-DefaultProfile <IAzureContextContainer>] -Name <String> [<CommonParameters>]





DESCRIPTION

The Get-AzureRmSiteRecoveryPolicy cmdlet gets the list of configured Azure Site Recovery protection policies or a specific protection policy by

name.





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 Site Recovery replication policy.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of the Site Recovery replication policy.



Required? true

Position? named

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

This cmdlet does not accept any input.





OUTPUTS

System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.SiteRecovery.ASRPolicy]







NOTES











RELATED LINKS

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

New-AzureRmSiteRecoveryPolicy

Remove-AzureRmSiteRecoveryPolicy