Skip to content

Commit b8e5e43

Browse files
committed
Update references
1 parent 81555b7 commit b8e5e43

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

code/infra/locals.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ locals {
55
"Microsoft.Authorization",
66
"Microsoft.Insights",
77
"Microsoft.KeyVault",
8-
"Microsoft.ManagedIdentity",
98
"Microsoft.Network",
109
"Microsoft.Resources",
1110
"Microsoft.Storage",

code/infra/network.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resource "azapi_resource" "subnet_function" {
55

66
body = jsonencode({
77
properties = {
8-
addressPrefix = tostring(cidrsubnet(data.azurerm_virtual_network.virtual_network.address_space[0], 27 - tonumber(reverse(split("/", data.azurerm_virtual_network.virtual_network.address_space[0]))[0]), 2))
8+
addressPrefix = var.subnet_cidr_function
99
delegations = [
1010
{
1111
name = "FunctionDelegation"
@@ -36,7 +36,7 @@ resource "azapi_resource" "subnet_private_endpoints" {
3636

3737
body = jsonencode({
3838
properties = {
39-
addressPrefix = tostring(cidrsubnet(data.azurerm_virtual_network.virtual_network.address_space[0], 27 - tonumber(reverse(split("/", data.azurerm_virtual_network.virtual_network.address_space[0]))[0]), 3))
39+
addressPrefix = var.subnet_cidr_private_endpoints
4040
delegations = []
4141
ipAllocations = []
4242
networkSecurityGroup = {

code/infra/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ variable "subnet_cidr_function" {
176176
type = string
177177
sensitive = false
178178
validation {
179-
condition = length(split("/", var.subnet_cidr_container_app)) == 2
179+
condition = length(split("/", var.subnet_cidr_function)) == 2
180180
error_message = "Please specify a valid subnet cidr range."
181181
}
182182
}

0 commit comments

Comments
 (0)