-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Support for DNS Private Resolver #16956
Comments
This project uses the azapi. Have not tested yet. Could REALLY use this feature on current project. |
When assigning an Azure DNS Private Resolver to a subnet via the Azure portal, the following subnet delegation is added to the subnet it's put in: delegation {
name = "Microsoft.Network.dnsResolvers"
service_delegation {
actions = [
"Microsoft.Network/virtualNetworks/subnets/join/action",
]
name = "Microsoft.Network/dnsResolvers"
}
} However, as reported in #12466, |
Hi, the problem with specific delegation has been fixed #17574 |
Hi, I am really interested in a fast implementation to deploy the Private DNS Resolver via Terraform with supported resources. |
Sadly, I had to implement using null_resource blocks wrapping CLI commands. Had attempted to use azapi first, but that did not handle the 'destroy' use case well. Also note, starting roughly 8/1, Azure implemented charges for this service. They billed the monthly rate on an hourly basis (730x). They have admitted a global bug, but the issue is still unresolved. |
Hi @omonnig , Can you share your implementation in Terraform please? Cheers |
I'm working on this feature. |
@ms-henglu can you please share working example how to setup this private dns resolver with terraform azapi ? |
https://github.com/namitjagtiani/terraform-azure-private-dns-resolver-azapi |
@floryut I have seen that , did you face issued mentioned in read.me(gotchas) mentioned in that repo ? like the second time apply will fail like that , did you face same issue when you rerun terraform apply ? |
Hi @onenessboy - There's an azapi example which is a slightly modified version of https://github.com/namitjagtiani/terraform-azure-private-dns-resolver-azapi. I guess the issues mentioned in the read.me are now fixed in the stable api-version. I'm working on supporting this feature in azurerm provider. |
Sure @ms-henglu will see other example you mentioned, but again eagerly waiting for azurerm version ...thanks again |
@ms-henglu Will this new resource only create the resolver itself? What about the inbound/outbound endpoints, the Forwarding Ruleset, the Forwarding Rules and the Ruleset DNS links? |
Hi @desweil , there'll be 5 more PRs to support these resources, I'll submit them after the first one is merged. |
Hi @ms-henglu , thanks for your work in getting this released! Is it possible to specify more than one IP for target_dns_servers ? It is not clear from the documentation. |
Hi @plasma-tech,
Yes |
Hi @plasma-tech - you can add multiple blocks of target_dns_servers
But I agree, the documentation was not clear to me either. I expected the block name to be target_dns_server and then having multiple blocks of it. Like subnet as part of azurerm_virtual_network, where the documentation specifies "Can be specified multiple times to define multiple subnets". Anyway - thanks @ms-henglu for your work to get this released! |
Thanks @yaench and @plasma-tech - I opened this PR to address the document issue: https://github.com/hashicorp/terraform-provider-azurerm/pull/19167/files :) |
I was actually talking about the "azurerm_private_dns_resolver_forwarding_rule" resource and the argument "target_dns_servers" here: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/private_dns_resolver_forwarding_rule#target_dns_servers |
@Joerg-L there are not data sources implemented yet, what are you looking for? |
Thanks @aristosvo We have separate configurations for the Hub and the different spokes. But as no data object is available, we have changed now the setup that the links are all managed in the Hub configuration. |
As all resources are implemented as data sources as well, I think it is time to close this issue. For other resources within this category a separate issue makes more sense. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Description
Support for DNS Private Resolver which "enables you to query Azure DNS private zones from an on-premises environment and vice versa without deploying VM based DNS servers"
New or Affected Resource(s)/Data Source(s)
azurerm_dns_private_resolver, azurerm_dns_private_resolver_endpoint, azurerm_dns_private_resolver_ruleset
Potential Terraform Configuration
References
No response
The text was updated successfully, but these errors were encountered: