Open kamerad opened 7 months ago
Thanks for raising this issue. Service API returns the targetResourceId with lower case so that TF causes diff. So suggest to use "ignore_changes" as workaround. In the meanwhile, I filed an issue on https://github.com/Azure/azure-rest-api-specs/issues/28449 for tracking.
Is there an existing issue for this?
Community Note
Terraform Version
1.7.5
AzureRM Provider Version
3.97.1
Affected Resource(s)/Data Source(s)
azurerm_dns_a_record
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The
azurerm_dns_a_record
should not be updated because there was no change.Actual Behaviour
The resource id for
target_resource_id
was converted to lowercase before being written to the terraform state. This causes an incorrectly recognized change and forces an update of the resource with every execution.Steps to Reproduce
terraform apply
that does the following:Re-run
terraform apply
without any changes to the terraform codetarget_resource_id
of the@
record with every executionImportant Factoids
No response
References
No response