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
# Variables are all of type string and defined in variables.tfresource"azurerm_redis_firewall_rule""rule" {
name="${var.redis_cache_name}_firewall_rule"redis_cache_name="${var.redis_cache_name}"resource_group_name="${var.resource_group_name}"start_ip="${var.firewall_rule_start_ip}"end_ip="${var.firewall_rule_end_ip}"
}
Debug Output
N/A
Panic Output
N/A
Expected Behavior
When trying to create an azurerm_redis_firewall_rule it should've accepted using _ in the name. Running terraform validate should've succeeded, but it reports an error that the name property only allows for alphanumeric characters.
Using Azure's portal I was able to create a Redis Cache Firewall Rule with the name az_0_9_A. The official Azure's documentation for the Redis Firewall Rule - Create Or Update doesn't specify the alphanumeric constraint.
Actual Behavior
$ terraform validate
Error: azurerm_redis_firewall_rule.rule: "name" may only contain alphanumeric characters
Steps to Reproduce
Try creating an azurerm_redis_firewall_rule resource with a name property with underscores.
Run terraform validate
Important Factoids
N/A
References
I couldn't find any issues related to this.
The text was updated successfully, but these errors were encountered:
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 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
Mar 30, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform (and AzureRM Provider) Version
I've also confirmed that the latest
master
at the time of writing this has the same bug.Affected Resource(s)
redis_firewall_rule
Terraform Configuration Files
Debug Output
N/A
Panic Output
N/A
Expected Behavior
When trying to create an
azurerm_redis_firewall_rule
it should've accepted using_
in the name. Runningterraform validate
should've succeeded, but it reports an error that thename
property only allows for alphanumeric characters.The documentation for this resource doesn't state this requirement, which is confusing.
Using Azure's portal I was able to create a Redis Cache Firewall Rule with the name
az_0_9_A
. The official Azure's documentation for the Redis Firewall Rule - Create Or Update doesn't specify the alphanumeric constraint.Actual Behavior
Steps to Reproduce
azurerm_redis_firewall_rule
resource with aname
property with underscores.terraform validate
Important Factoids
N/A
References
I couldn't find any issues related to this.
The text was updated successfully, but these errors were encountered: