Costa Rica
Last updated: 2026-02-12
This template contains Terraform configurations to create an Azure Databricks workspace.
Important
- Azure Databricks creates a managed resource group for service-managed infrastructure. You will typically see two resource groups: your main RG plus the Databricks-managed RG. This is expected behavior.
- If you disable
append_random_suffix, you may hit name collisions.
- main.tf: Creates/updates the Resource Group (idempotent ARM PUT) and the Databricks workspace.
- variables.tf: Defines input variables used in the Terraform configuration.
- provider.tf: Configures the AzureRM + AzAPI + Random providers.
- terraform.tfvars: Example values for variables.
- outputs.tf: Outputs such as the workspace ID and URL.
| Variable Name | Description | Type | Example Value |
|---|---|---|---|
resource_group_name |
Resource Group name to deploy into (created if missing). | string | "rg-analytics-dev" |
location |
Azure region for the deployment. | string | "eastus" |
databricks_workspace_name |
Base workspace name. If suffix enabled, final is <base>-<suffix>. |
string | "dbw-analytics-dev" |
sku |
Workspace SKU (standard, premium, trial). |
string | "standard" |
managed_resource_group_name |
Optional base managed RG name. If omitted, Databricks auto-generates it. | string | null |
append_random_suffix |
Append random suffix to reduce name collisions. | bool | true |
random_suffix_length |
Length of the suffix when enabled. | number | 6 |
tags |
Tags applied to resources. | map(string) | { "env": "dev" } |
-
Authenticate:
az login az account show # If needed: az account set --subscription "<subscription-id-or-name>"
-
Initialize:
terraform init -upgrade
-
Validate and plan:
terraform validate terraform plan
-
Apply:
terraform apply -auto-approve


