From 8e90bd40769052a2a7bf40755b8b824f36272132 Mon Sep 17 00:00:00 2001 From: Luis Diez Date: Tue, 26 Dec 2023 16:02:52 +0100 Subject: [PATCH] Fixed res group for azapi --- ssh.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssh.tf b/ssh.tf index b7a8a2e..8df94ed 100644 --- a/ssh.tf +++ b/ssh.tf @@ -15,8 +15,8 @@ resource "azapi_resource_action" "ssh_public_key_gen" { resource "azapi_resource" "ssh_public_key" { type = "Microsoft.Compute/sshPublicKeys@2022-11-01" name = random_pet.ssh_key_name.id - location = azurerm_resource_group.rg.location - parent_id = azurerm_resource_group.rg.id + location = azurerm_resource_group.linux-vm-rg.location + parent_id = azurerm_resource_group.linux-vm-rg.id } output "key_data" {