Skip to content

Commit

Permalink
Update virtual network configuration in main.tf: rename resource, set…
Browse files Browse the repository at this point in the history
… location, add DNS servers and tags
  • Loading branch information
martinyy108 committed Nov 23, 2024
1 parent 1b0ed4e commit a6c492d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions main/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ resource "random_integer" "name_suffix" {
##################################################################################
# VIRTUAL NETWORK
##################################################################################

resource "azurerm_virtual_network" "main" {
resource "azurerm_virtual_network" "example" {
name = "my-vnet-01"
address_space = ["10.0.0.0/16"]
location = var.location
location = "australiaeast"
resource_group_name = "infra-rg"
address_space = ["10.0.0.0/16"]
#dns_servers = ["10.0.0.4", "10.0.0.5"]

subnet {
name = "subnet1"
Expand All @@ -32,6 +32,9 @@ resource "azurerm_virtual_network" "main" {
#security_group = azurerm_network_security_group.example.id
}

tags = {
environment = "Production"
}
}

##################################################################################
Expand Down

0 comments on commit a6c492d

Please sign in to comment.