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

@ -115,7 +115,7 @@ resource "azurerm_linux_virtual_machine" "my_terraform_vm" {
admin_ssh_key {
username = var.username
public_key = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey
public_key = azapi_resource_action.ssh_public_key_gen.output.publicKey
}
boot_diagnostics {

View File

@ -20,5 +20,5 @@ resource "azapi_resource" "ssh_public_key" {
}
output "key_data" {
value = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey
value = azapi_resource_action.ssh_public_key_gen.output.publicKey
}