User Story 125263 (#238)

* Updated to use AzApi to obtain SSH (instead of tls)
This commit is contained in:
Tom Archer
2023-07-23 18:01:38 -07:00
committed by GitHub
parent b405c2cce8
commit 58245fa62c
12 changed files with 70 additions and 45 deletions

View File

@ -101,7 +101,7 @@ resource "azurerm_linux_virtual_machine" "test" {
}
admin_ssh_key {
username = coalesce(var.username, "azureuser")
username = var.username
public_key = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey
}
@ -112,7 +112,7 @@ resource "azurerm_linux_virtual_machine" "test" {
}
computer_name = "hostname"
admin_username = coalesce(var.username, "azureuser")
admin_username = var.username
}
resource "azurerm_managed_disk" "test" {