Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ You can use the `terraform.tfvars.example` file as a base for your variables. Le
- The CIDR address of the first subnet
- subnet_private_cidr
- The CIDR address of the second subnet
- managed_resource_group_name
- The name of the managed resource group


## Deploy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resource "azurerm_databricks_workspace" "this" {
location = azurerm_resource_group.this.location
sku = "premium"
tags = var.tags
managed_resource_group_name = var.managed_resource_group_name

custom_parameters {
virtual_network_id = local.vnet.id
Expand Down Expand Up @@ -72,4 +73,4 @@ resource "databricks_metastore_assignment" "this" {
provider = databricks.accounts
workspace_id = azurerm_databricks_workspace.this.workspace_id
metastore_id = var.existing_metastore_id == "" ? databricks_metastore.this[0].id : var.existing_metastore_id
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ location = "westeurope"
databricks_account_id = "xxx-xxx"
existing_metastore_id = "xxx-xxx"
new_metastore_name = ""
managed_resource_group_name = null #optional. if no name is provided, azure will generate one on it's own

# =============================================================================
# Network Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ variable "resource_group_name" {
type = string
}

variable "managed_resource_group_name" {
description = "The name of managed resource group. This is optional field"
type = string
default = null
validation {
condition = var.managed_resource_group_name != var.resource_group_name
error_message = "Managed resource group name should not be same as resource group name"
}
}

variable "tags" {
description = "A map of tags to assign to the resources"
type = map(string)
Expand Down