-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
31 lines (24 loc) · 832 Bytes
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
output "vm" {
value = local.is_windows_or_windows_server ? azurerm_windows_virtual_machine.vm[*] : azurerm_linux_virtual_machine.vm[*]
}
output "vm_nic" {
value = azurerm_network_interface.vm_nic
}
output "vm_rg" {
value = azurerm_resource_group.vm_rg
}
output "vm_pip" {
value = var.deploy_public_ip_address ? azurerm_public_ip.vm_pip[*] : null
}
output "vm_identity" {
value = local.is_windows_or_windows_server ? azurerm_windows_virtual_machine.vm[*].identity : azurerm_linux_virtual_machine.vm[*].identity
}
output "vm_lb" {
value = var.deploy_load_balancer ? azurerm_lb.vm : null
}
output "vm_lb_pip" {
value = var.deploy_load_balancer && var.load_balancer_is_public == true ? azurerm_public_ip.lb_pip : null
}
output "vm_lb_probe" {
value = var.deploy_load_balancer ? azurerm_lb_probe.lb_probe : null
}