Review customer-managed key coverage for Azure Databricks

Configure CMKs for the data covered by key-management requirements.

Description

In Azure Databricks, identify which data requires a customer-managed key (CMK). Managed disks for classic compute, managed services and the DBFS root have separate settings.

Potential impact

Default storage encryption may leave some data outside the key ownership your organization requires.

Remediation

Configure the CMK for the intended data and grant the relevant identity use of the Key Vault key. Verify the assigned key and your rotation and recovery procedures.

Examples

In both excerpts, customer_managed_key_enabled enables the managed-storage identity. The second adds managed_disk_cmk_key_vault_key_id for classic compute disks. Configure keys for managed services or the DBFS root separately when required.

Before

hcl
resource "azurerm_databricks_workspace" "example" {
  name                = "my-databricks-workspace"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  sku                 = "premium"

  customer_managed_key_enabled = true
}

After

hcl
resource "azurerm_databricks_workspace" "example" {
  name                = "my-databricks-workspace"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  sku                 = "premium"

  customer_managed_key_enabled      = true
  managed_disk_cmk_key_vault_key_id = azurerm_key_vault_key.cmk.id
}

References