-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathoutputs.tf
115 lines (93 loc) · 3.66 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
output "resource" {
description = "Windows Virtual Machine resource object."
value = azurerm_windows_virtual_machine.main
}
output "resource_public_ip" {
description = "Public IP resource object."
value = one(azurerm_public_ip.main[*])
}
output "resource_network_interface" {
description = "Network interface resource object."
value = azurerm_network_interface.main
}
output "resource_key_vault_certificate" {
description = "WinRM Key Vault certificate resource object."
value = one(azurerm_key_vault_certificate.main[*])
}
output "resource_maintenance_configuration_assignment" {
description = "Maintenance configuration assignment resource object."
value = azurerm_maintenance_assignment_virtual_machine.main
}
output "id" {
description = "ID of the Virtual Machine."
value = azurerm_windows_virtual_machine.main.id
}
output "name" {
description = "Name of the Virtual Machine."
value = azurerm_windows_virtual_machine.main.name
}
output "hostname" {
description = "Hostname of the Virtual Machine."
value = azurerm_windows_virtual_machine.main.computer_name
}
output "admin_username" {
description = "Administrator username of the Virtual Machine."
value = azurerm_windows_virtual_machine.main.admin_username
}
output "admin_password" {
description = "Administrator password of the Virtual Machine."
value = azurerm_windows_virtual_machine.main.admin_password
sensitive = true
}
output "identity_principal_id" {
description = "Object ID of the Virtual Machine Managed Service Identity."
value = try(azurerm_windows_virtual_machine.main.identity[0].principal_id, null)
}
output "public_ip_id" {
description = "Public IP ID of the Virtual Machine."
value = one(azurerm_public_ip.main[*].id)
}
output "public_ip_name" {
description = "Public IP name of the Virtual Machine."
value = one(azurerm_public_ip.main[*].name)
}
output "public_domain_name_label" {
description = "Public domain name of the Virtual Machine."
value = one(azurerm_public_ip.main[*].domain_name_label)
}
output "public_ip_address" {
description = "Public IP address of the Virtual Machine."
value = one(azurerm_public_ip.main[*].ip_address)
}
output "nic_id" {
description = "ID of the network interface attached to the Virtual Machine."
value = azurerm_network_interface.main.id
}
output "nic_name" {
description = "Name of the network interface attached to the Virtual Machine."
value = azurerm_network_interface.main.name
}
output "nic_ip_configuration_name" {
description = "Name of the IP configuration for the network interface attached to the Virtual Machine."
value = azurerm_network_interface.main.ip_configuration[0].name
}
output "private_ip_address" {
description = "Private IP address of the Virtual Machine."
value = azurerm_network_interface.main.private_ip_address
}
output "winrm_key_vault_certificate_id" {
description = "ID of the generated WinRM Key Vault certificate."
value = one(azurerm_key_vault_certificate.main[*].id)
}
output "winrm_key_vault_certificate_name" {
description = "Name of the generated WinRM Key Vault certificate."
value = one(azurerm_key_vault_certificate.main[*].name)
}
output "winrm_key_vault_certificate_data" {
description = "RAW Key Vault certificate data represented as a hexadecimal string."
value = one(azurerm_key_vault_certificate.main[*].certificate_data)
}
output "winrm_key_vault_certificate_thumbprint" {
description = "X509 thumbprint of the Key Vault certificate represented as a hexadecimal string."
value = one(azurerm_key_vault_certificate.main[*].thumbprint)
}