forked from aztfmod/terraform-azurerm-caf-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.tf
38 lines (31 loc) · 973 Bytes
/
output.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
output "network_interface_ids" {
depends_on = [azurerm_virtual_machine.vm]
value = azurerm_virtual_machine.vm.network_interface_ids
}
output "primary_network_interface_id" {
depends_on = [azurerm_virtual_machine.vm]
value = azurerm_virtual_machine.vm.primary_network_interface_id
}
output "admin_username" {
depends_on = [azurerm_virtual_machine.vm]
value = var.os_profile.admin_username
}
# TODO - get a keyvault created to insert the ssh key and share the kv secret id instead
output "ssh_private_key_pem" {
depends_on = [azurerm_virtual_machine.vm]
# sensitive = true
value = base64encode(tls_private_key.ssh.private_key_pem)
}
output "msi_system_principal_id" {
value = azurerm_virtual_machine.vm.identity.0.principal_id
}
output "name" {
value = azurerm_virtual_machine.vm.name
}
output "id" {
value = azurerm_virtual_machine.vm.id
}
output "object" {
sensitive = true
value = azurerm_virtual_machine.vm.id
}