ActivityLogAlertResource.UpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET