Cluster
The top level Log Analytics cluster resource container. Uses Azure REST API version 2021-06-01. In version 1.x of the Azure Native provider, it used API version 2020-10-01. Other available API versions: 2019-08-01-preview, 2020-08-01, 2022-10-01, 2023-09-01, 2025-02-01.
Example Usage
ClustersCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var cluster = new AzureNative.OperationalInsights.Cluster("cluster", new()
{
ClusterName = "oiautorest6685",
Location = "australiasoutheast",
ResourceGroupName = "oiautorest6685",
Sku = new AzureNative.OperationalInsights.Inputs.ClusterSkuArgs
{
Capacity = 1000,
Name = AzureNative.OperationalInsights.ClusterSkuNameEnum.CapacityReservation,
},
Tags =
{
{ "tag1", "val1" },
},
});
});
package main
import (
operationalinsights "github.com/pulumi/pulumi-azure-native-sdk/operationalinsights/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := operationalinsights.NewCluster(ctx, "cluster", &operationalinsights.ClusterArgs{
ClusterName: pulumi.String("oiautorest6685"),
Location: pulumi.String("australiasoutheast"),
ResourceGroupName: pulumi.String("oiautorest6685"),
Sku: &operationalinsights.ClusterSkuArgs{
Capacity: pulumi.Float64(1000),
Name: pulumi.String(operationalinsights.ClusterSkuNameEnumCapacityReservation),
},
Tags: pulumi.StringMap{
"tag1": pulumi.String("val1"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.operationalinsights.Cluster;
import com.pulumi.azurenative.operationalinsights.ClusterArgs;
import com.pulumi.azurenative.operationalinsights.inputs.ClusterSkuArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var cluster = new Cluster("cluster", ClusterArgs.builder()
.clusterName("oiautorest6685")
.location("australiasoutheast")
.resourceGroupName("oiautorest6685")
.sku(ClusterSkuArgs.builder()
.capacity(1000)
.name("CapacityReservation")
.build())
.tags(Map.of("tag1", "val1"))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:operationalinsights:Cluster oiautorest6685 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/clusters/{clusterName}
Properties
The list of Log Analytics workspaces associated with the cluster
The cluster's billing type.
Additional properties for capacity reservation
The cluster creation time
The identity of the resource.
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.
Configures whether cluster will use double encryption. This Property can not be modified after cluster creation. Default value is 'true'
The associated key properties.
The last time the cluster was updated.
The provisioning state of the cluster.
The sku properties.