Skip to content

Commit

Permalink
Add catch-all parameter to test resources script (#17025)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
  • Loading branch information
azure-sdk and benbp committed Feb 9, 2022
1 parent be0c05a commit 2bb27d4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion eng/common/TestResources/New-TestResources.ps1
Expand Up @@ -83,7 +83,14 @@ param (
[switch] $OutFile,

[Parameter()]
[switch] $SuppressVsoCommands = ($null -eq $env:SYSTEM_TEAMPROJECTID)
[switch] $SuppressVsoCommands = ($null -eq $env:SYSTEM_TEAMPROJECTID),

# Captures any arguments not declared here (no parameter errors)
# This enables backwards compatibility with old script versions in
# hotfix branches if and when the dynamic subscription configuration
# secrets get updated to add new parameters.
[Parameter(ValueFromRemainingArguments = $true)]
$NewTestResourcesRemainingArguments
)

. $PSScriptRoot/SubConfig-Helpers.ps1
Expand Down

0 comments on commit 2bb27d4

Please sign in to comment.