-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
New resource "azurerm_private_dns_zone_virtual_network_link" #3789
New resource "azurerm_private_dns_zone_virtual_network_link" #3789
Conversation
Closes #3758 |
I guess this patch should contain some code to deprecate the following arguments of the
|
Any update on this? Still having to use the deprecated "zone_type" field in the azurerm_dns_zone provider :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @tiwood
Thanks for this PR - apologies for the delayed review here, with this being marked as a WIP PR I'd missed this wasn't ready for review - sorry!
Taking a look through this mostly LGTM - if we can fix up the comments then this otherwise should be good to merge; since this looks good so that we can get this merged into the 1.34 release, I hope you don't mind but I'm going to push some commits to fix those comments.
Thanks!
azurerm/resource_arm_private_dns_zone_virtual_network_link_test.go
Outdated
Show resolved
Hide resolved
… it's gone ``` $ acctests azurerm TestAccAzureRMPrivateDnsZoneVirtualNetworkLink_ === RUN TestAccAzureRMPrivateDnsZoneVirtualNetworkLink_basic === PAUSE TestAccAzureRMPrivateDnsZoneVirtualNetworkLink_basic === RUN TestAccAzureRMPrivateDnsZoneVirtualNetworkLink_requiresImport --- SKIP: TestAccAzureRMPrivateDnsZoneVirtualNetworkLink_requiresImport (0.00s) resource_arm_private_dns_zone_virtual_network_link_test.go:42: Skipping since resources aren't required to be imported === RUN TestAccAzureRMPrivateDnsZoneVirtualNetworkLink_withTags === PAUSE TestAccAzureRMPrivateDnsZoneVirtualNetworkLink_withTags === CONT TestAccAzureRMPrivateDnsZoneVirtualNetworkLink_basic --- PASS: TestAccAzureRMPrivateDnsZoneVirtualNetworkLink_basic (226.26s) === CONT TestAccAzureRMPrivateDnsZoneVirtualNetworkLink_withTags --- PASS: TestAccAzureRMPrivateDnsZoneVirtualNetworkLink_withTags (372.72s) PASS ok github.com/terraform-providers/terraform-provider-azurerm/azurerm 599.035s ```
920d38f
to
f900cc2
Compare
Rebased this / fixed up the tests (when running I noticed the Read function called the Private DNS Zone Read function rather than the Virtual Network Link Read; and that the API appears to return that the Virtual Network Link's been deleted before it's actually gone) |
Tests pass: Thanks for this @tiwood :) |
This has been released in version 1.34.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 1.34.0"
}
# ... other configuration ... |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
azurerm_private_dns_zone_virtual_network_link
Enables you to manage Private DNS zone Virtual Network Links. These Links enable DNS resolution and registration inside Azure Virtual Networks using Azure Private DNS.
Example Usage
Argument Reference
The following arguments are supported:
name
- (Required) The name of the Private DNS Zone Virtual Network Link. Changing this forces a new resource to be created.private_dns_zone_name
- (Required) The name of the Private DNS zone (without a terminating dot). Changing this forces a new resource to be created.virtual_network_id
- (Required) The Resource ID of the Virtual Network that should be linked to the DNS Zone. Changing this forces a new resource to be created.registration_enabled
- (Optional) Is auto-registration of virtual machine records in the virtual network in the Private DNS zone enabled? Defaults tofalse
.resource_group_name
- (Required) Specifies the resource group where the resource exists. Changing this forces a new resource to be created.tags
- (Optional) A mapping of tags to assign to the resource.TODO
Fixes #3758