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
Terraform (and AzureRM Provider) Version
Terraform v0.15.1
on darwin_amd64
+ provider registry.terraform.io/hashicorp/azurerm v2.57.0
Affected Resource(s)
azurerm_container_registry_token
Terraform Configuration Files
# Copy-paste your Terraform configurations here - for large Terraform configs,# please use a service like Dropbox and share a link to the ZIP file. For# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp
resource"azurerm_container_registry_token""acr-pull" {
name="pull-image"resource_group_name=data.azurerm_resource_group.devops.namecontainer_registry_name=azurerm_container_registry.acr.namescope_map_id=data.azurerm_container_registry_scope_map.pull-only.id
}
# ACR includes some default system scope mapsdata"azurerm_container_registry_scope_map""pull-only" {
name="_repositories_pull"resource_group_name=data.azurerm_resource_group.devops.namecontainer_registry_name=azurerm_container_registry.acr.name
}
Debug Output
Panic Output
Expected Behaviour
It should be able to create a token with a "-" (dash) in the name. These are the requirements when creating a token through the Azure portal:
The value must not be empty.
The value must be between 5 and 50 characters long.
Name must start with a letter and contain only alphanumeric characters optionally separated by a '-'
Actual Behaviour
Receives an error saying only alphanumeric characters are allowed:
Error: alpha numeric characters only are allowed in "name": "pull-image"
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_container_registry_token
Terraform Configuration Files
Debug Output
Panic Output
Expected Behaviour
It should be able to create a token with a "-" (dash) in the name. These are the requirements when creating a token through the Azure portal:
Actual Behaviour
Receives an error saying only alphanumeric characters are allowed:
Error: alpha numeric characters only are allowed in "name": "pull-image"
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: