Review Azure Databricks virtual-network placement

Match classic-compute networking to connectivity and isolation requirements.

Description

Place Azure Databricks classic compute in a customer-managed VNet when you need custom routing or private connections to data sources. Configure serverless networking separately.

Potential impact

The managed VNet may limit your ability to meet routing or network isolation requirements.

Remediation

For an existing workspace, check the Terraform plan for replacement. To retain the workspace, follow the Azure Databricks VNet migration procedure. If the workspace uses Azure Load Balancer, contact your account team first. Stop running clusters and jobs, keep Allow Public Network Access enabled until migration finishes, then test data access from classic compute.

Examples

The second excerpt requires the VNet ID, the names of two subnets delegated to Databricks and both subnet-to-NSG association IDs. Configure the routes and NSG associations first.

Before

hcl
resource "azurerm_databricks_workspace" "example" {
  name                        = "example-dbw"
  location                    = azurerm_resource_group.example.location
  resource_group_name         = azurerm_resource_group.example.name
  sku                         = "premium"
  managed_resource_group_name = "example-managed-rg"
}

After

hcl
resource "azurerm_databricks_workspace" "example" {
  name                        = "example-dbw"
  location                    = azurerm_resource_group.example.location
  resource_group_name         = azurerm_resource_group.example.name
  sku                         = "premium"
  managed_resource_group_name = "example-managed-rg"

  custom_parameters {
    virtual_network_id = azurerm_virtual_network.example.id
    public_subnet_name = var.databricks_public_subnet_name
    private_subnet_name = var.databricks_private_subnet_name
    public_subnet_network_security_group_association_id = var.public_subnet_nsg_association_id
    private_subnet_network_security_group_association_id = var.private_subnet_nsg_association_id
  }
}

References