You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add support for additional frontend floating public IP addresses to the module. These additional frontend IP addresses are necessary in situations where one-to-one NAT is required to enable access to hosted services that are protected by the firewall.
Please add support for additional frontend floating public IP addresses to the module. These additional frontend IP addresses are necessary in situations where one-to-one NAT is required to enable access to hosted services that are protected by the firewall.
example code
resource "azurerm_public_ip" "public-ip-lb" {
count = var.deployment_mode != "Internal" ? var.number_of_public_ips : 0
name = "${var.vmss_name}-app-${count.index + 1}"
location = module.common.resource_group_location
resource_group_name = module.common.resource_group_name
allocation_method = var.vnet_allocation_method
sku = var.sku
domain_name_label = "${lower(var.vmss_name)}-${random_id.random_id.hex}-${count.index + 1}"
}
resource "azurerm_lb" "frontend-lb" {
count = var.deployment_mode != "Internal" ? 1 : 0
depends_on = [azurerm_public_ip.public-ip-lb]
name = "frontend-lb"
location = module.common.resource_group_location
resource_group_name = module.common.resource_group_name
sku = var.sku
dynamic "frontend_ip_configuration" {
for_each = azurerm_public_ip.public-ip-lb
content {
name = "${var.vmss_name}-app-${frontend_ip_configuration.key + 1}"
public_ip_address_id = frontend_ip_configuration.value.id
}
}
}
The text was updated successfully, but these errors were encountered: