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

Feature Request - Change Private link DNS zones resource group #1158

Open
danie1blackmore opened this issue Oct 17, 2024 · 1 comment
Open

Comments

@danie1blackmore
Copy link

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 "+1" or "me too" comments, 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

Description

When deploying private_link_by_service DNS zones, they deploy to a pre-defined resource group as {prefix}-dns. It appears that the resource_group_name cannot be changed in the same way that other connectivity resources can be changed using advanced settings.

Describe the solution you'd like

using the advanced = {} block to pass in custom resource group names to override the default prefix-dns resource groups

Additional context

@falowomi
Copy link

You can use the advance setting in your connectivity configuration block in the local.tf file. using below snippet.

NOTE: Use of the advanced setting is currently undocumented and experimental. Please be aware that using this setting may result in future breaking changes.

This works perfect for now

... other connectivity configuration

#Advance settings you need to fix the issue.
locals {
  configure_connectivity_resources = {
    advanced = {
      custom_settings_by_resource_type = {
        azurerm_resource_group = {
          dns = {
            ("location1 name") = {
              name = "customize resource group name"
            },
            #Remove location 2 if not needed.
            ("location2 name") = {
              name = "customize resource group name"
            }
          }
        }
      }
    }
  }
}

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

No branches or pull requests

2 participants