Add catch-all parameter to test resources script (#3334)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
Azure SDK Bot 2022-02-09 14:37:17 -08:00 committed by GitHub
parent 1b12863281
commit 503a870c09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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