Skip to content

Commit

Permalink
update changes to files
Browse files Browse the repository at this point in the history
  • Loading branch information
cshea-msft committed Oct 3, 2023
1 parent 00d4ef3 commit 4485734
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion quickstart/201-azfw-multi-addresses/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resource "random_pet" "rg_name" {
}

resource "random_password" "password" {
count = 2
count = 2
length = 20
min_lower = 1
min_upper = 1
Expand Down Expand Up @@ -34,6 +34,15 @@ resource "azurerm_public_ip" "pip_azfw" {
public_ip_prefix_id = azurerm_public_ip_prefix.pip_prefix.id
}

resource "azurerm_public_ip" "pip_azfw_2" {
name = "pip-azfw-1"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
sku = "Standard"
allocation_method = "Static"
public_ip_prefix_id = azurerm_public_ip_prefix.pip_prefix.id
}

resource "azurerm_virtual_network" "azfw_vnet" {
name = "azfw-vnet"
location = azurerm_resource_group.rg.location
Expand Down Expand Up @@ -204,6 +213,10 @@ resource "azurerm_firewall" "fw" {
subnet_id = azurerm_subnet.azfw_subnet.id
public_ip_address_id = azurerm_public_ip.pip_azfw.id
}
ip_configuration {
name = "azfw-ipconfig-2"
public_ip_address_id = azurerm_public_ip.pip_azfw_2.id
}
firewall_policy_id = azurerm_firewall_policy.azfw_policy.id
}

Expand Down
4 changes: 2 additions & 2 deletions quickstart/201-azfw-multi-addresses/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ variable "virtual_machine_size" {
}

variable "admin_username" {
type = string
type = string
description = "value of the admin username."
default = "azureuser"
default = "azureuser"
}

0 comments on commit 4485734

Please sign in to comment.