Skip to content

Commit

Permalink
Merge pull request #12947 from djberg96/provision_template
Browse files Browse the repository at this point in the history
Update Azure provision template to restrict VM names
  • Loading branch information
gmcculloug authored Dec 6, 2016
2 parents db4e219 + e149ef9 commit 5f9094f
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,18 @@
:notes_display: :hide
:vm_name:
:description: Instance Name
:required_method: :validate_vm_name
:required_method:
- :validate_vm_name
- :validate_regex
:required_regex: !ruby/regexp /^[^-_][a-zA-Z0-9_-]{1,15}(?<![-_])$/
:required_regex_fail_details: The name must be composed only of 1-15 English alphabet characters (a-z), numbers (0-9), dashes (-) or underscores (_). The first and last character must be an English alphabet character.
:required: true
:notes:
:display: :edit
:data_type: :string
:notes_display: :show
:min_length:
:max_length:
:min_length: 1
:max_length: 15
:display: :show
:schedule:
:description: Schedule
Expand Down

0 comments on commit 5f9094f

Please sign in to comment.