Skip to content

Commit

Permalink
delegate the app subnet to serverFarms
Browse files Browse the repository at this point in the history
  • Loading branch information
halprin committed Feb 19, 2024
1 parent a042ba2 commit f607e30
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions operations/template/net.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ resource "azurerm_subnet" "app" {
address_prefixes = ["172.17.67.128/26"]

service_endpoints = ["Microsoft.ContainerRegistry", "Microsoft.KeyVault", "Microsoft.Storage", "Microsoft.Web"]

delegation {
name = "delegation"

service_delegation {
name = "Microsoft.Web/serverFarms"
actions = ["Microsoft.Network/virtualNetworks/subnets/join/action"]
}
}
}

resource "azurerm_subnet" "database" {
Expand Down

0 comments on commit f607e30

Please sign in to comment.