Skip to content

Commit

Permalink
Updated ResourceGroups regex to prevent leading (^) and trailing ($) …
Browse files Browse the repository at this point in the history
…characters
  • Loading branch information
caseywatson committed Jul 31, 2024
1 parent 987d4a6 commit 6c6c8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/1_wara_collector.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Param(
[switch]$HPC,
[ValidatePattern('^(\/subscriptions\/)?[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$')]
[String[]]$SubscriptionIds,
[ValidatePattern('\/subscriptions\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\/resourceGroups\/[a-zA-Z0-9._-]+')]
[ValidatePattern('^\/subscriptions\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\/resourceGroups\/[a-zA-Z0-9._-]+$')]
[String[]]$ResourceGroups,
[GUID]$TenantID,
[ValidatePattern('^[^<>&%\\?/]+=~[^<>&%\\?/]+$|[^<>&%\\?/]+!~[^<>&%\\?/]+$')]
Expand Down

0 comments on commit 6c6c8d4

Please sign in to comment.