ClusterArgs

data class ClusterArgs(val billingType: Output<Either<String, BillingType>>? = null, val clusterName: Output<String>? = null, val identity: Output<IdentityArgs>? = null, val isAvailabilityZonesEnabled: Output<Boolean>? = null, val isDoubleEncryptionEnabled: Output<Boolean>? = null, val keyVaultProperties: Output<KeyVaultPropertiesArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<ClusterSkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ClusterArgs>

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}

Constructors

Link copied to clipboard
constructor(billingType: Output<Either<String, BillingType>>? = null, clusterName: Output<String>? = null, identity: Output<IdentityArgs>? = null, isAvailabilityZonesEnabled: Output<Boolean>? = null, isDoubleEncryptionEnabled: Output<Boolean>? = null, keyVaultProperties: Output<KeyVaultPropertiesArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<ClusterSkuArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val billingType: Output<Either<String, BillingType>>? = null

The cluster's billing type.

Link copied to clipboard
val clusterName: Output<String>? = null

The name of the Log Analytics cluster.

Link copied to clipboard
val identity: Output<IdentityArgs>? = null

The identity of the resource.

Link copied to clipboard
val isAvailabilityZonesEnabled: Output<Boolean>? = null

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.

Link copied to clipboard
val isDoubleEncryptionEnabled: Output<Boolean>? = null

Configures whether cluster will use double encryption. This Property can not be modified after cluster creation. Default value is 'true'

Link copied to clipboard

The associated key properties.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val sku: Output<ClusterSkuArgs>? = null

The sku properties.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): ClusterArgs