---
title: "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}"
method: PATCH
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}"
---

# PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}

`PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/activityLogAlerts/{activityLogAlertName}`

Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.

## Path parameters

- `activityLogAlertName` string, required

## Parameters

- `../../../../../common-types/resource-management/v2/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref
- `../../../../../common-types/resource-management/v2/types.json#/components/parameters/ResourceGroupNameParameter` — unresolved $ref
- `../../../../../common-types/resource-management/v2/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref

## Request body

- ActivityLogAlertPatchBody — An activity log alert object for the body of patch operations.
  - `tags` unknown
  - `properties` ActivityLogAlertPatch — An Azure activity log alert for patch operations.
    - `enabled` boolean — Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.

## Response `200`

An existing activity log alert was successfully updated.

- ActivityLogAlertResource — An azure resource object
  - `id` string — Azure resource Id
  - `name` string — Azure resource name
  - `type` string — Azure resource type
  - `location` string, required — Resource location
  - `tags` unknown

## Other responses

- `default` — Error response describing why the operation failed.

## Changes

- **2021-12-16** (2017-04-01) `050f5998f556` — 1 warning
  - deleted the `path` request parameter `resourceGroupName`
- **2021-01-08** (2017-04-01) `69f43459e695` — 2 warning
  - deleted the `path` request parameter `subscriptionId`
  - deleted the `query` request parameter `api-version`

[Change history](https://skmtc.dev/azure/apis/azure-activity-log-alerts-api/changes/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/microsoft.insights/activityLogAlerts/:activityLogAlertName/patch.md)

---

[API](https://skmtc.dev/azure/apis/azure-activity-log-alerts-api.md) · [All operations](https://skmtc.dev/azure/apis/azure-activity-log-alerts-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/azure-activity-log-alerts-api/revisions/050f5998f556/schema)
