Skip to main content

Mode 2: Bring-your-own Hub

Description​

You provide an existing hub infrastructure (VNET, Key Vault, metastore, NCC). SRA creates the spoke workspace with a managed spoke network. Optionally, SRA can also manage firewall rules and network policies for each spoke.

What Gets Created​

ResourceComponentCreated by SRA
Hub Resource GroupHub VNET + Azure Firewall✗ (You provide)
Webauth Workspace✗ (You provide)
CMK KeyVault✗ (You provide)
Route Table✗ (You provide)
Spoke Resource GroupWorkspace✓
Spoke VNET✓
Back-end Private Endpoint✓
UC Storage Account✓
Account ConsoleNCC (Network Connectivity Config)✗ (You provide)
Network Policy✗ / ✓ (Optional — see below)
Metastore✗ (You provide)

Configuration​

create_hub = false

Required Variables​

Additional Requirements

When create_hub = false, you must provide several additional variables from your existing hub infrastructure.

# Disable hub creation
create_hub = false

# Basic configuration
location = "westus2"
subscription_id = "ffffffff-ffff-ffff-ffff-ffffffffffff"
resource_suffix = "spoke"

# REQUIRED: Existing metastore from your hub
databricks_metastore_id = "00000000-0000-0000-0000-000000000000"

# REQUIRED: Existing hub VNET details (for spoke network peering)
existing_hub_vnet = {
route_table_id = "/subscriptions/.../providers/Microsoft.Network/routeTables/rt-hub"
vnet_id = "/subscriptions/.../providers/Microsoft.Network/virtualNetworks/vnet-hub"
}

# REQUIRED: Existing NCC
existing_ncc_id = "your-ncc-id"

# REQUIRED: Provide an existing network policy OR set create_spoke_network_policy = true to have SRA create one
existing_network_policy_id = "your-network-policy-id"

# REQUIRED if cmk_enabled = true (default)
existing_cmk_ids = {
key_vault_id = "/subscriptions/.../providers/Microsoft.KeyVault/vaults/kv-hub"
managed_disk_key_id = "https://kv-hub.vault.azure.net/keys/cmk-disk/version"
managed_services_key_id = "https://kv-hub.vault.azure.net/keys/cmk-services/version"
}

tags = {
Owner = "user@example.com"
}

Required Variable Summary​

  • databricks_account_id
  • location
  • subscription_id
  • resource_suffix
  • databricks_metastore_id
  • existing_ncc_id
  • existing_network_policy_id OR create_spoke_network_policy = true
  • existing_hub_vnet
  • existing_cmk_ids (if cmk_enabled = true)

Template File​

Use template_byo_hub.example.tfvars as the template for this type of deployment.

Important Notes​

CMK Configuration

If cmk_enabled = true (default), you must provide existing_cmk_ids. Alternatively, you can disable CMK:

cmk_enabled = false
SAT Not Available

The Security Analysis Tool (SAT) can only be deployed when create_hub = true. If you need SAT with a BYO hub deployment, you must deploy it separately.

Optional: SRA-managed Firewall Rules and Network Policy​

When using a BYO hub, SRA can optionally manage firewall rules and network policies on your existing hub infrastructure.

Firewall Rules (Classic Compute)

Set create_spoke_firewall_rules = true to have SRA create firewall rules for spoke classic compute on your existing hub firewall. Requires existing_firewall_policy_id.

create_spoke_firewall_rules = true
existing_firewall_policy_id = "/subscriptions/.../firewallPolicies/fp-hub"
Network Policy (Serverless)

Set create_spoke_network_policy = true to have SRA create a Databricks network policy for spoke serverless compute. When set, existing_network_policy_id must not be provided. The NCC (existing_ncc_id) must still be supplied as it is a shared regional resource.

create_spoke_network_policy = true
existing_ncc_id = "your-ncc-id"

Validation Rules​

When create_hub = false:

  • Must provide databricks_metastore_id
  • Must provide existing_ncc_id
  • Must provide existing_network_policy_id OR set create_spoke_network_policy = true
  • Must NOT provide existing_network_policy_id when create_spoke_network_policy = true
  • Must provide existing_hub_vnet
  • Must provide existing_cmk_ids if cmk_enabled = true
  • Must NOT provide existing_cmk_ids if cmk_enabled = false
  • create_spoke_firewall_rules requires existing_firewall_policy_id

Next Steps​

  1. Copy template_byo_hub.example.tfvars to terraform.tfvars
  2. Fill in required variables from your existing hub infrastructure
  3. Review Configuration Reference for optional features
  4. Follow Getting Started deployment steps