RecoveryServicesSiteRecoveryExtensions.GetSiteRecoveryPolicies Method

Definition

Gets a collection of SiteRecoveryPolicyResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSiteRecoveryPolicies(String) instead.

public static Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryPolicyCollection GetSiteRecoveryPolicies (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName);
static member GetSiteRecoveryPolicies : Azure.ResourceManager.Resources.ResourceGroupResource * string -> Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryPolicyCollection
<Extension()>
Public Function GetSiteRecoveryPolicies (resourceGroupResource As ResourceGroupResource, resourceName As String) As SiteRecoveryPolicyCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

resourceName
String

The name of the recovery services vault.

Returns

An object representing collection of SiteRecoveryPolicyResources and their operations over a SiteRecoveryPolicyResource.

Exceptions

resourceGroupResource or resourceName is null.

resourceName is an empty string, and was expected to be non-empty.

Applies to