Skip to content

Commit ea0e150

Browse files
add an output for the monitoring LB frontend IP configuration (#16)
1 parent b28483c commit ea0e150

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

outputs.tf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ output "sensor_scale_set_name" {
1818
value = azurerm_linux_virtual_machine_scale_set.sensor_scale_set.name
1919
}
2020

21-
output "sensor_load_balancer_frontend_ip_address" {
21+
output "sensor_load_balancer_management_frontend_ip_address" {
2222
value = azurerm_lb.scale_set_lb.frontend_ip_configuration[0].private_ip_address
23-
}
23+
}
24+
25+
output "sensor_load_balancer_monitoring_frontend_ip_address" {
26+
value = azurerm_lb.scale_set_lb.frontend_ip_configuration[1].private_ip_address
27+
}

scale_set.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,5 @@ resource "azurerm_monitor_autoscale_setting" "auto_scale_config" {
133133
depends_on = [
134134
azurerm_lb_probe.sensor_health_check_probe
135135
]
136-
}
136+
}
137+

0 commit comments

Comments
 (0)