skip to Main Content

Azure – get all the values from terraform for_each block in output

I am trying to fetch the private ip address from the below terraform block. resource "azurerm_private_endpoint" "private_endpoint_openAI" { for_each = var.private_endpoint_landing_zone_pe provider = azurerm.sub_private_endpoint_landing_zone name = each.key custom_network_interface_name = "${each.key}-nic" location = each.value.location resource_group_name = each.value.rg_name subnet_id = each.value.subnet_id tags…

VIEW QUESTION

Azure – AzAPI schema_validation_enabled bug

why isn't ignore_body_changes working for AzApi Terraform provider. (am I doing something wrong?) │ Error: embedded schema validation failed: the `body` is invalid: │ `properties.template.containers.0.resources.ephemeralStorage` is not expected here, it's read only │ `properties.template.containers.1.resources.ephemeralStorage` is not expected here, it's read…

VIEW QUESTION

Azure – Terraform conditional attribute setting

resource "azurerm_public_ip" "instance_public_ip" { count = var.assign_public_ip == "true" ? 1 : 0 name = "${var.name}-public-ip" location = var.location resource_group_name = var.resource_group_name allocation_method = "Dynamic" } resource "azurerm_network_interface" "main" { name = "${var.name}-nic" location = var.location resource_group_name = var.resource_group_name ip_configuration…

VIEW QUESTION
Back To Top
Search