---
title: "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}"
method: PATCH
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}"
tags: ["Watchers"]
---

# PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}

`PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}`

Update a Watcher

## Path parameters

- `watcherName` string, required

## Parameters

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

## Request body

- WatcherUpdate — The type used for update operations of the Watcher.
  - `identity` ManagedServiceIdentity — unresolved $ref
  - `tags` object — Resource tags.
  - `properties` WatcherUpdateProperties — The updatable properties of the Watcher.
    - `datastore` DatastoreUpdate — The properties of a data store.
      - `adxClusterResourceId` string, arm-id — The Azure resource ID of an Azure Data Explorer cluster.
      - `kustoClusterDisplayName` string — The Kusto cluster display name.
      - `kustoClusterUri` string — The Kusto cluster URI.
      - `kustoDataIngestionUri` string — The Kusto data ingestion URI.
      - `kustoDatabaseName` string — The name of a Kusto database.
      - `kustoManagementUrl` string — The Kusto management URL.
      - `kustoOfferingType` 'adx' | 'free' | 'fabric' — The type of Kusto offering.
    - `defaultAlertRuleIdentityResourceId` string, arm-id — The resource ID of a user-assigned managed identity that will be assigned to a new alert rule.

## Response `200`

Azure operation completed successfully.

- Watcher — unresolved $ref

## Other responses

- `202` — Resource update request accepted.
- `default` — An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/databasewatcher-microsoft-databasewatcher.md) · [All operations](https://skmtc.dev/azure/apis/databasewatcher-microsoft-databasewatcher/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/databasewatcher-microsoft-databasewatcher/revisions/87528fa84817/schema)
