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
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
}
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
}
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
Parameters
-
cluster_id
required - string -
id
optional computed - string -
key_name
required - string -
key_vault_id
required - string -
key_version
required - string -
timeouts
single block
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
{
"$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 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.