-
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
data "azurerm_private_dns_zone" no longer looks up resource group starting in v3.8.0 #17036
Comments
@jdaugherty - looks like this was a byproduct of #16858. In prior versions, the resource ID was lazily generated (off of the Azure API response). But after the move to the embedded SDK, the ID was eagerly generated. And while the resource group name attribute in the state was always being populated, the resource group name attribute on that ID wasn't updated if/when omitted in the configuration. |
This functionality has been released in v3.17.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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
Terraform Version
1.2.0
AzureRM Provider Version
3.8.0
Affected Resource(s)/Data Source(s)
data azurerm_private_dns_zone
Terraform Configuration Files
Debug Output/Panic Output
testing = "/subscriptions/***/resourceGroups//providers/Microsoft.Network/privateDnsZones/privatelink.eastus.azmk8s.io"
Expected Behaviour
testing = "/subscriptions/***/resourceGroups/my-resource-group-name-here/providers/Microsoft.Network/privateDnsZones/privatelink.eastus.azmk8s.io"
In v3.7.0, the resource group name was optional on the data lookup, but in v3.8.0 it returns an id without the resource group name in the path if a resource group name is not provided. Adding the resource group name to the data lookup includes the resource name, indicating that it's now required in 3.8.0 or a regression was introduced in 3.8.0.
Actual Behaviour
testing = "/subscriptions/***/resourceGroups//providers/Microsoft.Network/privateDnsZones/privatelink.eastus.azmk8s.io"
The resource group name is excluded in 3.8.0, while it was previously included in 3.7.0
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: