Skip to content

Latest commit

 

History

History
87 lines (64 loc) · 3.07 KB

File metadata and controls

87 lines (64 loc) · 3.07 KB

Terraform Template - Azure Databricks (Workspace)

Costa Rica

GitHub brown9804

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.
image
image
image

File Descriptions

  • 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.

Variables

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" }

Usage

  1. Authenticate:

    az login
    az account show
    # If needed:
    az account set --subscription "<subscription-id-or-name>"
  2. Initialize:

    terraform init -upgrade
  3. Validate and plan:

    terraform validate
    terraform plan
  4. Apply:

    terraform apply -auto-approve
Total views

Refresh Date: 2026-02-12