resource "azurerm_virtual_network" "main" { name = var.name address_space = [var.address_space] location = var.location resource_group_name = var.resource_group } resource "azurerm_subnet" "internal" { name = "internal" resource_group_name = var.resource_group virtual_network_name = azurerm_virtual_network.main.name address_prefix = var.subnet_cidr }