Skip to content

Instantly share code, notes, and snippets.

@kunalworldwide
Created October 12, 2022 10:21
Show Gist options
  • Save kunalworldwide/5034717417a60fb7ceef00f3b2a86d93 to your computer and use it in GitHub Desktop.
Save kunalworldwide/5034717417a60fb7ceef00f3b2a86d93 to your computer and use it in GitHub Desktop.
resource "azurerm_databricks_workspace" "Databricks" {
location = azurerm_resource_group.RG.location
name = "Databricks Name"
resource_group_name = azurerm_resource_group.RG.name
managed_resource_group_name = "Databricks Managed Resource Group"
sku = "Databricks Sku"
custom_parameters {
no_public_ip = true
virtual_network_id = azurerm_virtual_network.DatabricksVnet.id
public_subnet_name = azurerm_subnet.DatabricksSubnetPublic.name
private_subnet_name = azurerm_subnet.DatabricksSubnetPrivate.name
}
depends_on = [
azurerm_subnet_network_security_group_association.public,
azurerm_subnet_network_security_group_association.private
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment