Skip to content

Commit 21d2e04

Browse files
authored
management group id check (#58)
1 parent 0047475 commit 21d2e04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ALZ/Assets/alz-bicep-config/v0.14.0.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
],
160160
"Value": "",
161161
"DefaultValue": "alz",
162-
"Valid": "^[a-zA-Z]{2,5}$"
162+
"Valid": "^[a-zA-Z0-9]{2,10}(-[a-zA-Z0-9]{2,10})?$"
163163
},
164164
"Location": {
165165
"Type": "UserInput",

src/Tests/Unit/Private/Request-ConfigurationValue.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ InModuleScope 'ALZ' {
8585
Names = @("parTopLevelManagementGroupPrefix", "parCompanyPrefix")
8686
Value = ""
8787
DefaultValue = "alz"
88-
Valid = "^[a-zA-Z]{3,5}$"
88+
Valid = "^[a-zA-Z0-9]{2,10}(-[a-zA-Z0-9]{2,10})?$"
8989
}
9090

9191
Request-ConfigurationValue -configName "prefix" -configValue $configValue -withRetries $false

0 commit comments

Comments
 (0)