Skip to content

Commit 515a09c

Browse files
azure-sdkbenbp
andauthored
Add catch-all parameter to test resources script (#26898)
Co-authored-by: Ben Broderick Phillips <[email protected]>
1 parent b1e7375 commit 515a09c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

eng/common/TestResources/New-TestResources.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,14 @@ param (
8383
[switch] $OutFile,
8484

8585
[Parameter()]
86-
[switch] $SuppressVsoCommands = ($null -eq $env:SYSTEM_TEAMPROJECTID)
86+
[switch] $SuppressVsoCommands = ($null -eq $env:SYSTEM_TEAMPROJECTID),
87+
88+
# Captures any arguments not declared here (no parameter errors)
89+
# This enables backwards compatibility with old script versions in
90+
# hotfix branches if and when the dynamic subscription configuration
91+
# secrets get updated to add new parameters.
92+
[Parameter(ValueFromRemainingArguments = $true)]
93+
$NewTestResourcesRemainingArguments
8794
)
8895

8996
. $PSScriptRoot/SubConfig-Helpers.ps1

0 commit comments

Comments
 (0)