Skip to content

Instantly share code, notes, and snippets.

@kunalworldwide
Created October 12, 2022 10:37
Show Gist options
  • Save kunalworldwide/5eeb23801ce5f9fbe14938ccf3adddf8 to your computer and use it in GitHub Desktop.
Save kunalworldwide/5eeb23801ce5f9fbe14938ccf3adddf8 to your computer and use it in GitHub Desktop.
resource "azurerm_subnet" "DatabricksSubnetPrivate" {
name = "VirtualNetwork PrivateSubnet Name"
resource_group_name = azurerm_resource_group.RG.name
virtual_network_name = azurerm_virtual_network.DatabricksVnet.name
address_prefixes = ["VirtualNetwork PrivateSubnet CIDR"]
delegation {
name = "Microsoft.Databricks.workspaces"
service_delegation {
name = "Microsoft.Databricks/workspaces"
actions = [
"Microsoft.Network/virtualNetworks/subnets/join/action",
"Microsoft.Network/virtualNetworks/subnets/prepareNetworkPolicies/action",
"Microsoft.Network/virtualNetworks/subnets/unprepareNetworkPolicies/action"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment