Open Joerg-L opened 1 year ago
Someone an idea on that issue? We still see that following dns related resources
tags are not applied correctly.
Anything we can do to support on that issue?
Anyone an idea on that?
I suspect this is an upstream Azure API issue, as I'm seeing the same behavior with equivalent azapi
provider
Azurerm resource:
resource "azurerm_private_dns_zone_virtual_network_link" "dns_link" {
for_each = var.private_dns_zones
name = "${azurerm_virtual_network.az_vnet.name}-to-${module.regions.location_short}-privatedns"
resource_group_name = var.dns_rg_name != null ? var.dns_rg_name : var.rg_name
private_dns_zone_name = azurerm_private_dns_zone.dns[each.key].name
virtual_network_id = azurerm_virtual_network.az_vnet.id
tags = var.tags
}
azapi resource
resource "azapi_resource" "dns_link" {
for_each = var.private_dns_zones_link
type = "Microsoft.Network/privateDnsZones/virtualNetworkLinks@2020-06-01"
name = "${azurerm_virtual_network.az_vnet.name}-to-${module.regions.location_short}-privatedns"
location = "global"
parent_id = each.value
body = jsonencode({
properties = {
registrationEnabled = false
virtualNetwork = {
id = azurerm_virtual_network.az_vnet.id
}
}
})
tags = var.tags
}
Only SOME of the tags are sticking... weird.
I have the same issue here. Tags are not being applied to Private DNS Zones or Network Links.
Is there an existing issue for this?
Community Note
Terraform Version
1.5.7
AzureRM Provider Version
v3.74.0
Affected Resource(s)/Data Source(s)
azurerm_private_dns_zone_virtual_network_link, azurerm_private_dns_zone, azurerm_private_dns_resolver, azurerm_private_dns_resolver_dns_forwarding_ruleset, azurerm_private_dns_resolver_inbound_endpoint, azurerm_private_dns_resolver_outbound_endpoint
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The defined Tags, as also shown in the plan, should be applied
Actual Behaviour
Terraform plan/apply shows
But not all Tags are applied
Steps to Reproduce
terraform apply with supplied configuration
Important Factoids
same tag logic is successfully applied to other resources like resource group
References
No response