Azure Data Explorer Cluster
This page shows how to write Terraform and Azure Resource Manager for Data Explorer Cluster and write them securely.
azurerm_kusto_cluster (Terraform)
The Cluster in Data Explorer can be configured in Terraform with the resource name azurerm_kusto_cluster
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_kusto_cluster" "cluster_ok" {
name = "kustocluster"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
sku {
resource "azurerm_kusto_cluster" "cluster" {
name = var.cluster_name
location = var.resource_group_location
resource_group_name = var.resource_group_name
sku {
resource "azurerm_kusto_cluster" "cluster_ok" {
name = "kustocluster"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
sku {
resource "azurerm_kusto_cluster" "cluster" {
name = var.kusto_cluster_name
location = var.resource_group_location
resource_group_name = var.resource_group_name
sku {
resource "azurerm_kusto_cluster" "cluster" {
location = data.azurerm_resource_group.rg.location
name = var.cluster_name
resource_group_name = data.azurerm_resource_group.rg.name
sku {
resource "azurerm_kusto_cluster" "kusto" {
name = var.kusto_name
location = var.location
resource_group_name = var.resource_group_name
sku {
resource "azurerm_kusto_cluster" "this" {
location = var.location
name = var.name
resource_group_name = var.resource_group_name
tags = var.tags
resource "azurerm_kusto_cluster" "cluster_ok" {
name = "kustocluster"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
sku {
resource "azurerm_kusto_cluster" "this" {
enable_disk_encryption = var.enable_disk_encryption
enable_streaming_ingest = var.enable_streaming_ingest
location = var.location
name = var.name
resource_group_name = var.resource_group_name
resource "azurerm_kusto_cluster" "adxtest" {
name = var.resource_base_name
location = azurerm_resource_group.adxtest.location
resource_group_name = azurerm_resource_group.adxtest.name
sku {
Parameters
-
data_ingestion_uri
optional computed - string -
double_encryption_enabled
optional - bool -
enable_disk_encryption
optional - bool -
enable_purge
optional - bool -
enable_streaming_ingest
optional - bool -
engine
optional - string -
id
optional computed - string -
language_extensions
optional - list of string -
location
required - string -
name
required - string -
resource_group_name
required - string -
tags
optional - map from string to string -
trusted_external_tenants
optional computed - list of string -
uri
optional computed - string -
zones
optional - list of string -
identity
list block-
identity_ids
optional - set of string -
principal_id
optional computed - string -
tenant_id
optional computed - string -
type
required - string
-
-
optimized_auto_scale
list block-
maximum_instances
required - number -
minimum_instances
required - number
-
-
sku
list block -
timeouts
single block -
virtual_network_configuration
list block-
data_management_public_ip_id
required - string -
engine_public_ip_id
required - string -
subnet_id
required - string
-
Explanation in Terraform Registry
Manages a Kusto (also known as Azure Data Explorer) Cluster
Microsoft.Kusto/Clusters (Azure Resource Manager)
The Clusters in Microsoft.Kusto can be configured in Azure Resource Manager with the resource name Microsoft.Kusto/Clusters
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"clusters_kustocluster_name": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"clusters_kustocluster_name": {
"type": "Microsoft.Kusto/Clusters",
"apiVersion": "2020-06-14",
"name": "[variables('clusterName')]",
"location": "[variables('location')]",
"sku": {
"name": "Dev(No SLA)_Standard_E2a_v4",
"type": "Microsoft.Kusto/Clusters",
"apiVersion": "2020-06-14",
"name": "[variables('clusterName')]",
"location": "[variables('location')]",
"sku": {
"name": "Dev(No SLA)_Standard_E2a_v4",
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"clusters_kustocluster_name": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"clusters_kustocluster_name": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"clusters_kustocluster_name": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"clusters_kustocluster_name": {
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"clusters_kustocluster_name": {
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"clusters_kustocluster_name": {
Frequently asked questions
What is Azure Data Explorer Cluster?
Azure Data Explorer Cluster is a resource for Data Explorer of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Data Explorer Cluster?
For Terraform, the SnidermanIndustries/checkov-fork, prashant101386/devops and melscoop-test/check source code examples are useful. See the Terraform Example section for further details.
For Azure Resource Manager, the CSA-DanielVillamizar/Azure, WebWeaver503/azqs-templates and MaheshGupta09/microsoft-data-engineering-ilt-deploy source code examples are useful. See the Azure Resource Manager Example section for further details.