Share via


RecoveryServicesSiteRecoveryExtensions.GetSiteRecoveryAlerts Method

Definition

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

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

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 SiteRecoveryAlertResources and their operations over a SiteRecoveryAlertResource.

Exceptions

resourceGroupResource or resourceName is null.

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

Applies to