-
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
Terraform plan with azurerm_dns_a_record fails when parsing existing dns record with azurerm 3.19.1 #18104
Comments
issue for us running pipeline with v3.19.x/v3.20.0 and existing state with CNAME record created using earlier version v3.13.0, pinned back to v3.18.0 and worked around for now |
for me this did not work. I went ahead and changed respected TFSTATE file where "dnszone" resources were and updated "id": "/subscriptions/XXX/resourceGroups/YYY/providers/Microsoft.Network/dnszones/..." to "id": "/subscriptions/XXX/resourceGroups/YYY/providers/Microsoft.Network/dnsZones/...". After that azurerm >=3.19.1 versions work for me. |
Hashicorp, fix the bug it's ridiculous. |
We build a small script to "fix" this. |
I'm facing this problem too, I changed to v3.18.0, and it seems to be working fine. |
Issue still exist in azurerm v.3.29.1 ##19119 |
I have this issue when using terraform import
parsing segment "staticDnsZones": expected the segment "dnszones" to be "dnsZones" Version 3.39.1 |
@MarkTallentire as the error message returned from
As such you should be able to fix this by updating the casing for Thanks! |
Taking a look through here, since #18692 adds a state migration to fix the casing for any existing However if you're still seeing issues here I'd recommend double-checking the value being provided here, as Terraform is now validating the Resource ID format matches what we're trying to parse, the error message should be highlighting which segment doesn't match (and how to fix that) - as such updating that segment to the expected casing (also shown in the Thanks! |
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.7
AzureRM Provider Version
3.19.1
Affected Resource(s)/Data Source(s)
azurerm_dns_cname_record
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Terraform plan should finish successfully.
With azurerm 3.18.0 it works fine.
There where no changes to the dns config, aside from upgrading the provider version to 3.19.1
Works fine on some providers - but they were new deployments - this has existing 3.18.0 state
Actual Behaviour
Fails to apply
Steps to Reproduce
Run terraform plan or terraform apply with an existing dns_a_record after upgrading to azurerm 3.19.1
Important Factoids
Seems to affect deployments that have upgraded
References
[Run terraform plan or terraform apply with an existing dns_a_record after upgrading to azurerm 3.19.0
](#18039)
The text was updated successfully, but these errors were encountered: