-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path02_Create_Azure_Resources.tf
24 lines (22 loc) · 1.02 KB
/
02_Create_Azure_Resources.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
resource "azurerm_databricks_workspace" "this" {
name = "dbw-${local.sufix}"
location = local.location
resource_group_name = data.azurerm_resource_group.this.name
sku = "premium"
public_network_access_enabled = true
custom_parameters {
virtual_network_id = data.azurerm_virtual_network.this.id
public_subnet_name = data.azurerm_subnet.public_dbr.name
private_subnet_name = data.azurerm_subnet.private_dbr.name
public_subnet_network_security_group_association_id = data.azurerm_subnet.public_dbr.id
private_subnet_network_security_group_association_id = data.azurerm_subnet.private_dbr.id
}
}
resource "azurerm_data_factory" "this" {
name = "adf-${local.sufix}"
location = local.location
resource_group_name = data.azurerm_resource_group.this.name
identity {
type = "SystemAssigned"
}
}