Fixing command to get public key

This commit is contained in:
Tom Archer
2024-06-07 05:41:16 -07:00
committed by lonegunmanb
parent 40be72ba42
commit 0fd2a5d129
13 changed files with 15 additions and 15 deletions

View File

@ -210,7 +210,7 @@ resource "azurerm_linux_virtual_machine" "vm_server" {
admin_username = var.admin_username
admin_ssh_key {
username = var.admin_username
public_key = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey
public_key = azapi_resource_action.ssh_public_key_gen.output.publicKey
}
network_interface_ids = [azurerm_network_interface.vm_server_nic.id]
os_disk {
@ -241,7 +241,7 @@ resource "azurerm_linux_virtual_machine" "vm_jump" {
}
admin_ssh_key {
username = var.admin_username
public_key = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey
public_key = azapi_resource_action.ssh_public_key_gen.output.publicKey
}
source_image_reference {
publisher = "Canonical"