diff --git a/main.tf b/main.tf index 1bfe7c7..3d8ff74 100644 --- a/main.tf +++ b/main.tf @@ -11,8 +11,8 @@ resource "azurerm_resource_group" "this" { resource "azurerm_virtual_network" "this" { name = var.vnet_name - location = var.resource_group.location - resource_group_name = var.resource_group.name + location = azurerm_resource_group.this.location + resource_group_name = azurerm_resource_group.this.name address_space = var.vnet_address_space dns_servers = var.vnet_dns_servers tags = merge(