Share via


AlertProcessingRulesOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create or update an alert processing rule.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRule> CreateOrUpdateAsync (this Microsoft.Azure.Management.AlertsManagement.IAlertProcessingRulesOperations operations, string resourceGroupName, string alertProcessingRuleName, Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRule alertProcessingRule, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.AlertsManagement.IAlertProcessingRulesOperations * string * string * Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRule * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.AlertsManagement.Models.AlertProcessingRule>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IAlertProcessingRulesOperations, resourceGroupName As String, alertProcessingRuleName As String, alertProcessingRule As AlertProcessingRule, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AlertProcessingRule)

Parameters

operations
IAlertProcessingRulesOperations

The operations group for this extension method.

resourceGroupName
String

Resource group name where the resource is created.

alertProcessingRuleName
String

The name of the alert processing rule that needs to be created/updated.

alertProcessingRule
AlertProcessingRule

Alert processing rule to be created/updated.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to