» azurerm_kusto_cluster

Manages a Kusto (also known as Azure Data Explorer) Cluster

» Example Usage

resource "azurerm_resource_group" "rg" {
  name     = "my-kusto-cluster-rg"
  location = "East US"
}

resource "azurerm_kusto_cluster" "test" {
  name                = "kustocluster"
  location            = "${azurerm_resource_group.rg.location}"
  resource_group_name = "${azurerm_resource_group.rg.name}"

  sku {
    name     = "Standard_D13_v2"
    capacity = 2
  }

  tags = {
    Environment = "Production"
  }
}

» Argument Reference

The following arguments are supported:

  • name - (Required) The name of the Kusto Cluster to create. Changing this forces a new resource to be created.

  • location - (Required) The location where the Kusto Cluster should be created. Changing this forces a new resource to be created.

  • resource_group_name - (Required) Specifies the Resource Group where the Kusto Cluster should exist. Changing this forces a new resource to be created.

  • sku - (Required) A sku block as defined below.

  • tags - (Optional) A mapping of tags to assign to the resource.


A sku block supports the following:

  • name - (Required) The name of the SKU. Valid values are: Dev(No SLA)_Standard_D11_v2, Standard_D11_v2, Standard_D12_v2, Standard_D13_v2, Standard_D14_v2, Standard_DS13_v2+1TB_PS, Standard_DS13_v2+2TB_PS, Standard_DS14_v2+3TB_PS, Standard_DS14_v2+4TB_PS, Standard_L16s, Standard_L4s and Standard_L8s

  • capacity - (Required) Specifies the node count for the cluster. Boundaries depend on the sku name.

» Attributes Reference

The following attributes are exported:

  • id - The Kusto Cluster ID.

  • uri - The FQDN of the Azure Kusto Cluster.

  • data_ingestion_uri - The Kusto Cluster URI to be used for data ingestion.


» Import

Kusto Clusters can be imported using the resource id, e.g.

terraform import azurerm_kusto_cluster.test /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Kusto/Clusters/cluster1