Clusters - Create Or Update
Create or update a Log Analytics cluster.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}?api-version=2025-02-01
Name | In | Required | Type | Description |
---|---|---|---|---|
cluster
|
path | True |
string minLength: 4maxLength: 63 pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$ |
The name of the Log Analytics cluster. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Name | Required | Type | Description |
---|---|---|---|
location | True |
string |
The geo-location where the resource lives |
identity |
Resource's identity. |
||
properties.associatedWorkspaces |
The list of Log Analytics workspaces associated with the cluster |
||
properties.billingType |
The cluster's billing type. |
||
properties.capacityReservationProperties |
Additional properties for capacity reservation |
||
properties.isAvailabilityZonesEnabled |
boolean |
Sets whether the cluster will support availability zones. This can be set as true only in regions where Azure Data Explorer support Availability Zones. This Property can not be modified after cluster creation. Default value is 'true' if region supports Availability Zones. |
|
properties.isDoubleEncryptionEnabled |
boolean |
Configures whether cluster will use double encryption. This Property can not be modified after cluster creation. Default value is 'true' |
|
properties.keyVaultProperties |
The associated key properties. |
||
properties.replication |
Cluster's replication properties. |
||
sku |
The sku properties. |
||
tags |
object |
Resource tags. |
Name | Type | Description |
---|---|---|
200 OK |
OK response definition. |
|
202 Accepted |
Accepted response definition (Long running operation). Headers
|
|
Other Status Codes |
Error response describing why the operation failed. |
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Sample request
PUT https://management.azure.com/subscriptions/53bc36c5-91e1-4d09-92c9-63b89e571926/resourcegroups/oiautorest6685/providers/Microsoft.OperationalInsights/clusters/oiautorest6685?api-version=2025-02-01
{
"sku": {
"name": "CapacityReservation",
"capacity": 1000
},
"location": "eastus",
"tags": {
"tag1": "val1"
}
}
Sample response
Location: https://management.azure.com/subscriptions/53bc36c5-91e1-4d09-92c9-63b89e571926/resourceGroups/oiautorest6685/providers/Microsoft.OperationalInsights/clusters/oiautorest6685/operationresults/c0f02ffd-0d4e-491e-a10c-fb82a1543a77?api-version=2025-02-01
Azure-AsyncOperation: https://management.azure.com/subscriptions/53bc36c5-91e1-4d09-92c9-63b89e571926/providers/Microsoft.OperationalInsights/locations/eastus/operationstatuses/c0f02ffd-0d4e-491e-a10c-fb82a1543a77?api-version=2025-02-01
{
"properties": {
"provisioningState": "Succeeded",
"clusterId": "1c3f2afc-9ec1-4e74-bfe8-022b83bcd7b1",
"billingType": "Cluster",
"lastModifiedDate": "2020-01-13T17:40:33Z",
"createdDate": "2020-01-13T17:40:33Z",
"isDoubleEncryptionEnabled": true,
"isAvailabilityZonesEnabled": true
},
"id": "/subscriptions/53bc36c5-91e1-4d09-92c9-63b89e571926/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/clusters/oiautorest6685",
"identity": {
"principalId": "356d057d-cba5-44dd-8a30-b2e547bc416b",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"type": "SystemAssigned"
},
"sku": {
"name": "CapacityReservation",
"capacity": 1000
},
"name": "TestResourceLock",
"type": "Microsoft.OperationalInsights/clusters",
"location": "eastus"
}
Name | Description |
---|---|
Associated |
The list of Log Analytics workspaces associated with the cluster. |
Billing |
The cluster's billing type. |
Capacity |
The capacity reservation level in Gigabytes for this cluster. |
Capacity |
The Capacity Reservation properties. |
Cluster |
The top level Log Analytics cluster resource container. |
Cluster |
The provisioning state of the cluster. |
Cluster |
Cluster replication properties. |
Cluster |
The provisioning state of the cluster replication. |
Cluster |
The cluster sku definition. |
Cluster |
The SKU (tier) of a cluster. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
key |
The key vault properties. |
Managed |
Managed service identity (system assigned and/or user assigned identities) |
Managed |
Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). |
User |
User assigned identity properties |
The list of Log Analytics workspaces associated with the cluster.
Name | Type | Description |
---|---|---|
associateDate |
string (date-time) |
The time of workspace association. |
resourceId |
string (arm-id) |
Associated workspace arm resource id, in the form of: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}. |
workspaceId |
string (uuid) |
Associated workspace immutable id. |
workspaceName |
string |
Associated workspace resource name. |
The cluster's billing type.
Value | Description |
---|---|
Cluster | |
Workspaces |
The capacity reservation level in Gigabytes for this cluster.
Value | Description |
---|---|
100 | |
1000 | |
10000 | |
200 | |
2000 | |
25000 | |
300 | |
400 | |
500 | |
5000 | |
50000 |
The Capacity Reservation properties.
Name | Type | Description |
---|---|---|
lastSkuUpdate |
string (date-time) |
The last time Sku was updated. |
minCapacity |
integer (int64) |
Minimum CapacityReservation value in Gigabytes. |
The top level Log Analytics cluster resource container.
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
identity |
Resource's identity. |
|
location |
string |
The geo-location where the resource lives |
name |
string |
The name of the resource |
properties.associatedWorkspaces |
The list of Log Analytics workspaces associated with the cluster |
|
properties.billingType |
The cluster's billing type. |
|
properties.capacityReservationProperties |
Additional properties for capacity reservation |
|
properties.clusterId |
string |
The ID associated with the cluster. |
properties.createdDate |
string (date-time) |
The cluster creation time |
properties.isAvailabilityZonesEnabled |
boolean |
Sets whether the cluster will support availability zones. This can be set as true only in regions where Azure Data Explorer support Availability Zones. This Property can not be modified after cluster creation. Default value is 'true' if region supports Availability Zones. |
properties.isDoubleEncryptionEnabled |
boolean |
Configures whether cluster will use double encryption. This Property can not be modified after cluster creation. Default value is 'true' |
properties.keyVaultProperties |
The associated key properties. |
|
properties.lastModifiedDate |
string (date-time) |
The last time the cluster was updated. |
properties.provisioningState |
The provisioning state of the cluster. |
|
properties.replication |
Cluster's replication properties. |
|
sku |
The sku properties. |
|
tags |
object |
Resource tags. |
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
The provisioning state of the cluster.
Value | Description |
---|---|
Canceled | |
Creating | |
Deleting | |
Failed | |
ProvisioningAccount | |
Succeeded | |
Updating |
Cluster replication properties.
Name | Type | Description |
---|---|---|
createdDate |
string (date-time) |
The cluster's replication creation time |
enabled |
boolean |
Specifies whether the replication is enabled or not. When true the cluster is replicate to the specified location. |
isAvailabilityZonesEnabled |
boolean |
Should enable AvailabilityZones for the given replicated cluster |
lastModifiedDate |
string (date-time) |
The last time the cluster's replication was updated. |
location |
string |
The secondary location of the replication. If replication is being enabled, enabled must be provided. |
provisioningState |
The provisioning state of the cluster replication. |
The provisioning state of the cluster replication.
Value | Description |
---|---|
Canceled | |
DisableRequested | |
Disabling | |
EnableRequested | |
Enabling | |
Failed | |
RollbackRequested | |
RollingBack | |
Succeeded |
The cluster sku definition.
Name | Type | Description |
---|---|---|
capacity |
Capacity (int64) |
The capacity reservation level in Gigabytes for this cluster. |
name |
The SKU (tier) of a cluster. |
The SKU (tier) of a cluster.
Value | Description |
---|---|
CapacityReservation |
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
The key vault properties.
Name | Type | Description |
---|---|---|
keyName |
string |
The name of the key associated with the Log Analytics cluster. |
keyRsaSize |
integer (int32) |
Selected key minimum required size. |
keyVaultUri |
string |
The Key Vault uri which holds they key associated with the Log Analytics cluster. |
keyVersion |
string |
The version of the key associated with the Log Analytics cluster. |
Managed service identity (system assigned and/or user assigned identities)
Name | Type | Description |
---|---|---|
principalId |
string (uuid) |
The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. |
tenantId |
string (uuid) |
The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. |
type |
Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). |
|
userAssignedIdentities |
<string,
User |
User-Assigned Identities |
Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
Value | Description |
---|---|
None | |
SystemAssigned | |
SystemAssigned,UserAssigned | |
UserAssigned |
User assigned identity properties
Name | Type | Description |
---|---|---|
clientId |
string (uuid) |
The client ID of the assigned identity. |
principalId |
string (uuid) |
The principal ID of the assigned identity. |