diff --git a/main.tf b/main.tf index 5eb1dc7..aeadb27 100644 --- a/main.tf +++ b/main.tf @@ -17,7 +17,7 @@ resource "azurerm_subnet" "subnet" { name = var.subnet_names[count.index] resource_group_name = data.azurerm_resource_group.vnet.name virtual_network_name = azurerm_virtual_network.vnet.name - address_prefix = var.subnet_prefixes[count.index] + address_prefixes = [var.subnet_prefixes[count.index]] } data "azurerm_subnet" "import" { @@ -33,6 +33,4 @@ resource "azurerm_subnet_network_security_group_association" "vnet" { for_each = var.nsg_ids subnet_id = data.azurerm_subnet.import[each.key].id network_security_group_id = each.value - - depends_on = [data.azurerm_subnet.import] } \ No newline at end of file