Skip to content

Commit

Permalink
Fix subnet address_prefix format in main.tf: change from list to sing…
Browse files Browse the repository at this point in the history
…le string
  • Loading branch information
martinyy108 committed Nov 23, 2024
1 parent f204f64 commit 5f67951
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions main/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,28 @@ resource "azurerm_virtual_network" "main" {
resource_group_name = "infra-rg"

subnet {
name = "firewallsubnet"
address_prefix = ["172.16.0.0/24"]
name = "firewallsubnet"
address_prefixes = "172.16.0.0/24"
}

subnet {
name = "vpngatewaysubnet"
address_prefix = ["172.16.1.0/24"]
name = "vpngatewaysubnet"
address_prefixes = "172.16.1.0/24"
}

subnet {
name = "vmssubnet"
address_prefix = ["172.16.2.0/24"]
name = "vmssubnet"
address_prefixes = "172.16.2.0/24"
}

subnet {
name = "privateendpointssubnet"
address_prefix = ["172.16.3.0/24"]
name = "privateendpointssubnet"
address_prefixes = "172.16.3.0/24"
}

subnet {
name = "appservicessubnet"
address_prefix = ["172.16.4.0/24"]
name = "appservicessubnet"
address_prefixes = "172.16.4.0/24"
}

}
Expand Down

0 comments on commit 5f67951

Please sign in to comment.