Skip to content

Commit

Permalink
management group id check (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneHezser authored May 8, 2023
1 parent 0047475 commit 21d2e04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ALZ/Assets/alz-bicep-config/v0.14.0.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
],
"Value": "",
"DefaultValue": "alz",
"Valid": "^[a-zA-Z]{2,5}$"
"Valid": "^[a-zA-Z0-9]{2,10}(-[a-zA-Z0-9]{2,10})?$"
},
"Location": {
"Type": "UserInput",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ InModuleScope 'ALZ' {
Names = @("parTopLevelManagementGroupPrefix", "parCompanyPrefix")
Value = ""
DefaultValue = "alz"
Valid = "^[a-zA-Z]{3,5}$"
Valid = "^[a-zA-Z0-9]{2,10}(-[a-zA-Z0-9]{2,10})?$"
}

Request-ConfigurationValue -configName "prefix" -configValue $configValue -withRetries $false
Expand Down

0 comments on commit 21d2e04

Please sign in to comment.