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
Is your feature request related to a problem? Please describe.
Azure storage accounts must be created with an account name that is
lower case letters and numbers
min length 3
max length 24
Where storageAccountName is a parameter of a bicep deployment, it would seem prudent to validate the param in line with azure's own requirements.
We can currently validate using min and max length, however it seems we are missing the ability to validate:
lower case letters and numbers?
Describe the solution you'd like
Make it easy to fulfil the above validation requirement. For example via new validation attributes e.g @alphaNumeric() or perhaps a more flexible regex validation, or even allow custom validation attributes somehow.
The text was updated successfully, but these errors were encountered:
@alex-frankel not sure if the issue linked as dupe covers the same ground. It reads to me as its asking for bicep to validate the name property of various resources according to rules. However suppose you have a bicep module that accepts the name as a bicep parameter. Then in main.bicep you consume that module, what validation is there of that bicep parameter? As the module author you'd want to add validation to that bicep paramater to align with its intended purpose - i.e being used to set the name of some resources which have particular rules. Can you confirm whether the issue linked as dupe will also cover this scenario?
ghost
locked as resolved and limited conversation to collaborators
May 24, 2023
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is your feature request related to a problem? Please describe.
Azure storage accounts must be created with an account name that is
Where
storageAccountName
is a parameter of a bicep deployment, it would seem prudent to validate the param in line with azure's own requirements.We can currently validate using min and max length, however it seems we are missing the ability to validate:
Describe the solution you'd like
Make it easy to fulfil the above validation requirement. For example via new validation attributes e.g
@alphaNumeric()
or perhaps a more flexible regex validation, or even allow custom validation attributes somehow.The text was updated successfully, but these errors were encountered: