File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ terraform {
2+ required_providers {
3+ azurerm = {
4+ source = " hashicorp/azurerm"
5+ version = " >= 3.60.0"
6+ }
7+ }
8+ }
9+
10+ data "azurerm_resource_group" "main" {
11+ name = var. resource_group_name
12+ }
13+
14+ resource "azurerm_databricks_workspace" "main" {
15+ name = var. workspace_name
16+ resource_group_name = data. azurerm_resource_group . main . name
17+ location = var. location
18+ sku = var. databricks_sku
19+ managed_resource_group_name = var. managed_resource_group_name
20+
21+ custom_parameters {
22+ no_public_ip = var. no_public_ip
23+ public_subnet_name = var. public_subnet_name
24+ private_subnet_name = var. private_subnet_name
25+ virtual_network_id = var. vnet_id
26+ public_subnet_network_security_group_association_id = var. public_subnet_network_security_group_association_id
27+ private_subnet_network_security_group_association_id = var. private_subnet_network_security_group_association_id
28+ }
29+
30+ tags = var. tags
31+ }
You can’t perform that action at this time.
0 commit comments