Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

casing issue with azurerm_private_endpoint private_dns_zone_ids #27378

Open
1 task done
fgarcia-cnb opened this issue Sep 13, 2024 · 1 comment
Open
1 task done

casing issue with azurerm_private_endpoint private_dns_zone_ids #27378

fgarcia-cnb opened this issue Sep 13, 2024 · 1 comment

Comments

@fgarcia-cnb
Copy link

fgarcia-cnb commented Sep 13, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.8.5

AzureRM Provider Version

3.111.0

Affected Resource(s)/Data Source(s)

azurerm_private_endpoint

Terraform Configuration Files

dynamic "private_dns_zone_group" {
    for_each = local.is_ampls ? [1] : []
    content {
      name                 = "${var.host_names[floor(count.index / length(var.subresource_names))]}-${var.subresource_names[count.index % length(var.subresource_names)]}${var.cosmos_failover_pe_suffix}-pe-dnz-zone-group"
      private_dns_zone_ids = data.azurerm_private_dns_zone.ampls_zones[*].id
    }

Debug Output/Panic Output

n/a

Expected Behaviour

resource id casing differences should not trigger changes

Actual Behaviour

changes in resource group casing triggers changes

image

Steps to Reproduce

No response

Important Factoids

No response

References

No response

@magodo
Copy link
Collaborator

magodo commented Sep 18, 2024

I think it is related to #24024, but I can't reproduce it locally. Could you please try to run the following snippet and provides the state and the log file:

provider "azurerm" {
  features {}
}

resource "azurerm_private_dns_zone" "test" {
  name                = "acctestzone123.internal"
  resource_group_name = data.azurerm_resource_group.<your rg>.name
}

data "azurerm_private_dns_zone" "test" {
  name                = azurerm_private_dns_zone.test.name
  resource_group_name = azurerm_private_dns_zone.test.resource_group_name
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants