forked from Azure/terraform-azurerm-compute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
39 lines (32 loc) · 1.3 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
37
38
39
output "vm_ids" {
description = "Virtual machine ids created."
value = "${concat(azurerm_virtual_machine.vm-windows.*.id,azurerm_virtual_machine.vm-windows-with-datadisk.*.id, azurerm_virtual_machine.vm-linux.*.id,azurerm_virtual_machine.vm-linux-with-datadisk.*.id)}"
}
output "network_security_group_id" {
description = "id of the security group provisioned"
value = "${azurerm_network_security_group.vm.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 "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}"
}
output "availability_set_id" {
description = "id of the availability set where the vms are provisioned."
value = "${azurerm_availability_set.vm.id}"
}