Azure Data Explorer Cluster Customer Managed Key

This page shows how to write Terraform and Azure Resource Manager for Data Explorer Cluster Customer Managed Key and write them securely.

azurerm_kusto_cluster_customer_managed_key (Terraform)

The Cluster Customer Managed Key in Data Explorer can be configured in Terraform with the resource name azurerm_kusto_cluster_customer_managed_key. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L16
resource "azurerm_kusto_cluster_customer_managed_key" "example" {
  cluster_id   = azurerm_kusto_cluster.cluster_ok.id
  key_vault_id = azurerm_key_vault.example.id
  key_name     = azurerm_key_vault_key.example.name
  key_version  = azurerm_key_vault_key.example.version
}
main.tf#L16
resource "azurerm_kusto_cluster_customer_managed_key" "example" {
  cluster_id   = azurerm_kusto_cluster.cluster_ok.id
  key_vault_id = azurerm_key_vault.example.id
  key_name     = azurerm_key_vault_key.example.name
  key_version  = azurerm_key_vault_key.example.version
}
adx.tf#L29
resource "azurerm_kusto_cluster_customer_managed_key" "adxtest" {
  count        = var.use_encryption_on_adx ? 1 : 0
  cluster_id   = azurerm_kusto_cluster.adxtest.id
  key_vault_id = azurerm_key_vault.adxtest.id
  key_name     = azurerm_key_vault_key.adxtest.name
  key_version  = azurerm_key_vault_key.adxtest.version

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages a Customer Managed Key for a Kusto 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

azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
      "clusters_kustocluster_name": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
      "clusters_kustocluster_name": {
asaga-workspace-lab-02.json#L11
            "type": "Microsoft.Kusto/Clusters",
            "apiVersion": "2020-06-14",
            "name": "[variables('clusterName')]",
            "location": "[variables('location')]",
            "sku": {
                "name": "Dev(No SLA)_Standard_E2a_v4",
asaga-workspace-lab-02.json#L11
            "type": "Microsoft.Kusto/Clusters",
            "apiVersion": "2020-06-14",
            "name": "[variables('clusterName')]",
            "location": "[variables('location')]",
            "sku": {
                "name": "Dev(No SLA)_Standard_E2a_v4",
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
      "clusters_kustocluster_name": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
      "clusters_kustocluster_name": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
      "clusters_kustocluster_name": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
      "clusters_kustocluster_name": {
azuredeploy.json
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
      "clusters_kustocluster_name": {
azuredeploy.json
{
  "$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 Customer Managed Key?

Azure Data Explorer Cluster Customer Managed Key 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 Customer Managed Key?

For Terraform, the SnidermanIndustries/checkov-fork, melscoop-test/check and orangenagy/azurerm-adx 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.