forked from Azure/terraform-azurerm-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
37 lines (30 loc) · 1.1 KB
/
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
32
33
34
35
36
output "vm_ids" {
description = "Virtual machine ids created."
value = "${concat(azurerm_virtual_machine.vm-windows.*.id, azurerm_virtual_machine.vm-linux.*.id)}"
}
output "network_interface_ids" {
description = "ids of the vm nics provisoned."
value = "${azurerm_network_interface.vm.*.id}"
}
output "network_interface_private_ip" {
description = "private ip addresses of the vm nics"
value = "${azurerm_network_interface.vm.*.private_ip_address}"
}
output "availability_set_id" {
description = "id of the availability set where the vms are provisioned."
value = "${azurerm_availability_set.vm.id}"
}
/* optionally, retrieve public IP properties
output "public_ip_id" {
description = "id of the public ip address provisoned."
value = "${azurerm_public_ip.vm.*.id}"
}
output "public_ip_address" {
description = "The actual ip address allocated for the resource."
value = "${azurerm_public_ip.vm.*.ip_address}"
}
output "public_ip_dns_name" {
description = "fqdn to connect to the first vm provisioned."
value = "${azurerm_public_ip.vm.*.fqdn}"
}
*/