Share via


ActivityLogAlertResource.Update 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 Azure.Response<Azure.ResourceManager.Monitor.ActivityLogAlertResource> Update (Azure.ResourceManager.Monitor.Models.ActivityLogAlertPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.ResourceManager.Monitor.Models.ActivityLogAlertPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Monitor.ActivityLogAlertResource>
override this.Update : Azure.ResourceManager.Monitor.Models.ActivityLogAlertPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Monitor.ActivityLogAlertResource>
Public Overridable Function Update (patch As ActivityLogAlertPatch, Optional cancellationToken As CancellationToken = Nothing) As 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