---
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}`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Updates a Log Analytics cluster.

## Path parameters

- `clusterName` 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

- ClusterPatch: The top level Log Analytics cluster resource container.
  - `properties` ClusterPatchProperties: Log Analytics cluster patch properties.
    - `keyVaultProperties` KeyVaultProperties: The key vault properties.
      - `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.
      - `keyRsaSize` integer: Selected key minimum required size.
    - `billingType` 'Cluster' | 'Workspaces': Configures whether billing will be only on the cluster or each workspace will be billed by its proportional use. This does not change the overall billing, only how it will be distributed. Default value is 'Cluster'
  - `identity` ManagedServiceIdentity (unresolved $ref)
  - `sku` ClusterSku: The cluster sku definition.
    - `capacity` integer, nullable: The capacity reservation level in Gigabytes for this cluster.
    - `name` 'CapacityReservation': The SKU (tier) of a cluster.
  - `tags` object: Resource tags.

## Response `200`

Azure operation completed successfully.

- Cluster (unresolved $ref)

## Other responses

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

---

[API](https://skmtc.dev/azure/apis/azure-log-analytics-network-security-perimeter-apis.md) - [All operations](https://skmtc.dev/azure/apis/azure-log-analytics-network-security-perimeter-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/azure-log-analytics-network-security-perimeter-apis/revisions/f7ecefbd3eee?raw)
