Skip to content

Commit

Permalink
Docs: remove usage of deprecated azurerm options from PL guides (#3606
Browse files Browse the repository at this point in the history
)
  • Loading branch information
alexott authored May 24, 2024
1 parent fe9747a commit 079c608
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
13 changes: 6 additions & 7 deletions docs/guides/azure-private-link-workspace-simplified.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ resource "azurerm_subnet" "private" {
virtual_network_name = azurerm_virtual_network.this.name
address_prefixes = [cidrsubnet(var.cidr, 3, 1)]
enforce_private_link_endpoint_network_policies = true
enforce_private_link_service_network_policies = true
private_endpoint_network_policies_enabled = true
delegation {
name = "databricks"
Expand All @@ -204,11 +203,11 @@ resource "azurerm_subnet_network_security_group_association" "private" {
resource "azurerm_subnet" "plsubnet" {
name = "${local.prefix}-privatelink"
resource_group_name = var.rg_name
virtual_network_name = azurerm_virtual_network.this.name
address_prefixes = [cidrsubnet(var.cidr, 3, 2)]
enforce_private_link_endpoint_network_policies = true
name = "${local.prefix}-privatelink"
resource_group_name = var.rg_name
virtual_network_name = azurerm_virtual_network.this.name
address_prefixes = [cidrsubnet(var.cidr, 3, 2)]
private_endpoint_network_policies_enabled = true
}
```
Expand Down
29 changes: 14 additions & 15 deletions docs/guides/azure-private-link-workspace-standard.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ resource "azurerm_subnet" "transit_private" {
virtual_network_name = azurerm_virtual_network.transit_vnet.name
address_prefixes = [cidrsubnet(local.cidr_transit, 6, 1)]
enforce_private_link_endpoint_network_policies = true
enforce_private_link_service_network_policies = true
private_endpoint_network_policies_enabled = true
delegation {
name = "databricks"
Expand All @@ -260,11 +259,11 @@ resource "azurerm_subnet_network_security_group_association" "transit_private" {
resource "azurerm_subnet" "transit_plsubnet" {
name = "${local.prefix}-transit-privatelink"
resource_group_name = var.rg_transit
virtual_network_name = azurerm_virtual_network.transit_vnet.name
address_prefixes = [cidrsubnet(local.cidr_transit, 6, 2)]
enforce_private_link_endpoint_network_policies = true
name = "${local.prefix}-transit-privatelink"
resource_group_name = var.rg_transit
virtual_network_name = azurerm_virtual_network.transit_vnet.name
address_prefixes = [cidrsubnet(local.cidr_transit, 6, 2)]
private_endpoint_network_policies_enabled = true
}
resource "azurerm_private_endpoint" "transit_auth" {
Expand Down Expand Up @@ -435,8 +434,8 @@ resource "azurerm_subnet" "app_private" {
virtual_network_name = azurerm_virtual_network.app_vnet.name
address_prefixes = [cidrsubnet(local.cidr_dp, 6, 1)]
enforce_private_link_endpoint_network_policies = true
enforce_private_link_service_network_policies = true
private_endpoint_network_policies_enabled = true
private_link_service_network_policies_enabled = true
delegation {
name = "databricks"
Expand All @@ -460,12 +459,12 @@ resource "azurerm_subnet_network_security_group_association" "app_private" {
resource "azurerm_subnet" "app_plsubnet" {
provider = azurerm.app
name = "${local.prefix}-app-privatelink"
resource_group_name = var.rg_dp
virtual_network_name = azurerm_virtual_network.app_vnet.name
address_prefixes = [cidrsubnet(local.cidr_dp, 6, 2)]
enforce_private_link_endpoint_network_policies = true
provider = azurerm.app
name = "${local.prefix}-app-privatelink"
resource_group_name = var.rg_dp
virtual_network_name = azurerm_virtual_network.app_vnet.name
address_prefixes = [cidrsubnet(local.cidr_dp, 6, 2)]
private_endpoint_network_policies_enabled = true
}
resource "azurerm_databricks_workspace" "app_workspace" {
Expand Down

0 comments on commit 079c608

Please sign in to comment.