forked from Azure/terraform-azurerm-compute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
54 lines (44 loc) · 2.02 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
output "vm_ids" {
description = "Virtual machine ids created."
value = concat(azurerm_virtual_machine.vm-windows.*.id, azurerm_virtual_machine.vm-linux.*.id)
}
output "network_security_group_id" {
description = "id of the security group provisioned"
value = azurerm_network_security_group.vm.id
}
output "network_security_group_name" {
description = "name of the security group provisioned"
value = azurerm_network_security_group.vm.name
}
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 = data.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
}
output "vm_zones" {
description = "map with key `Virtual Machine Id`, value `list of the Availability Zone` which the Virtual Machine should be allocated in."
value = zipmap(concat(azurerm_virtual_machine.vm-windows.*.id, azurerm_virtual_machine.vm-linux.*.id), concat(azurerm_virtual_machine.vm-windows.*.zones, azurerm_virtual_machine.vm-linux.*.zones))
}
output "vm_identity" {
description = "map with key `Virtual Machine Id`, value `list of identity` created for the Virtual Machine."
value = zipmap(concat(azurerm_virtual_machine.vm-windows.*.id, azurerm_virtual_machine.vm-linux.*.id), concat(azurerm_virtual_machine.vm-windows.*.identity, azurerm_virtual_machine.vm-linux.*.identity))
}