---
title: "PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}"
method: PATCH
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}"
tags: ["Clusters"]
---

# PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}

`PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}`

Updates a Log Analytics cluster.

## Path parameters

- `resourceGroupName` string, required
- `clusterName` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- ClusterPatch — The top level Log Analytics cluster resource container.
  - `properties` ClusterPatchProperties — Log Analytics cluster patch properties.
    - `keyVaultProperties` KeyVaultProperties
      - `keyVaultUri` string — The Key Vault uri which holds they key associated with the Log Analytics cluster.
      - `keyName` string — The name of the key associated with the Log Analytics cluster.
      - `keyVersion` string — The version of the key associated with the Log Analytics cluster.
  - `sku` Sku
    - `capacity` integer — The capacity value
    - `name` 'CapacityReservation' — The name of the SKU.
  - `tags` object — Resource tags

## Response `200`

The existing cluster was successfully updated. Check provisioningStatus to see detailed status.

- Cluster — The resource definition.
  - `id` string — Resource Id
  - `name` string — Resource name
  - `type` string — Resource type
  - `location` string — Resource location
  - `tags` object — Resource tags

## Other responses

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

---

[API](https://skmtc.dev/azure/apis/azure-log-analytics.md) · [All operations](https://skmtc.dev/azure/apis/azure-log-analytics/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/azure-log-analytics/revisions/4c57eb8e3305/schema)
