You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Versions
terraform: 1.7.4
azure provider: 3.94.0
module: 5.1.0
Description
Describe the bug
The azurerm_dns_zone resource created by the terraform-azurerm-caf-enterprise-scale module does use dnszones and not dnsZones in the key name.
Since all resources in the Terraform state use the Resource ID of the resource in Azure, the ID should reflect the lowercase and uppercase naming as expected by the Terraform Azure provider.
╷
│ Error: parsing "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.Network/dnszones/dnsZoneValue": parsing segment "staticDnsZones": parsing the DnsZone ID: the segment at position 6 didn't match
│
│ Expected a DnsZone ID that matched:
│
│ > /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.Network/dnsZones/dnsZoneValue
│
│ However this value was provided:
│
│ > /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.Network/dnszones/dnsZoneValue
│
│ The parsed Resource ID was missing a value for the segment at position 6
│ (which should be the literal value "dnsZones").
│
╵
Steps to Reproduce
Import Terraform state for a public zone (based on Terraform state key) that fails:
Community Note
Versions
terraform: 1.7.4
azure provider: 3.94.0
module: 5.1.0
Description
Describe the bug
The azurerm_dns_zone resource created by the terraform-azurerm-caf-enterprise-scale module does use
dnszones
and notdnsZones
in the key name.Since all resources in the Terraform state use the Resource ID of the resource in Azure, the ID should reflect the lowercase and uppercase naming as expected by the Terraform Azure provider.
Steps to Reproduce
terraform import 'module.enterprise_scale.azurerm_dns_zone.connectivity["/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.Network/dnszones/dnsZoneValue"]' /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.Network/dnszones/dnsZoneValue
terraform import 'module.enterprise_scale.azurerm_dns_zone.connectivity["/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.Network/dnszones/dnsZoneValue"]' /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.Network/dnsZones/dnsZoneValue
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: