skip to Main Content

Azure – how to variablize the resource attribute as input value in terraform

I am trying to use below code data "azurerm_resource_group" "rg_tst_na" { name = "test1" } data "azurerm_resource_group" "rg_dev_na" { name = "test2" } resource "azurerm_role_assignment" "test_role_assign" { for_each = var.test_role_assignment principal_id = azurerm_user_assigned_identity.test_setup["${each.key}_${each.value}"].principal_id # this is created as separate resource…

VIEW QUESTION

Azure APIM named values using terraform

I have a terraform variable as given below variable "named_values" { type = map(object({ value = string secret = bool secret_id = optional(string) identity_client_id = optional(string) })) default = { "my-named-value-1" = { value = "my-plain-text-value-1" secret = false secret_id…

VIEW QUESTION

use azurerm_virtual_machine with trusted_launch

Due to https://github.com/hashicorp/terraform-provider-azurerm/issues/6117, I must use azurerm_virtual_machine to create my intended machine. Unfortunately, the image in use requires trusted launch, for which I could not find any configuration option. Is this possible or am I forced to use az_api instead?

VIEW QUESTION
Back To Top
Search