ActivityLogAlertResource.UpdateAsync Method

Definition

Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName}
  • Operation Id: ActivityLogAlerts_Update
  • Default Api Version: 2020-10-01
  • Resource: ActivityLogAlertResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.ActivityLogAlertResource>> UpdateAsync (Azure.ResourceManager.Monitor.Models.ActivityLogAlertPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Monitor.Models.ActivityLogAlertPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.ActivityLogAlertResource>>
override this.UpdateAsync : Azure.ResourceManager.Monitor.Models.ActivityLogAlertPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.ActivityLogAlertResource>>
Public Overridable Function UpdateAsync (patch As ActivityLogAlertPatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ActivityLogAlertResource))

Parameters

patch
ActivityLogAlertPatch

Parameters supplied to the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to