From 5eec215713cbc6208ceef7671fdf20e643cad349 Mon Sep 17 00:00:00 2001 From: Ben Broderick Phillips Date: Tue, 8 Feb 2022 16:52:58 -0500 Subject: [PATCH] Add catch-all parameter to test resources script --- eng/common/TestResources/New-TestResources.ps1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/eng/common/TestResources/New-TestResources.ps1 b/eng/common/TestResources/New-TestResources.ps1 index 189f5185c71e..86fd3b8578fe 100644 --- a/eng/common/TestResources/New-TestResources.ps1 +++ b/eng/common/TestResources/New-TestResources.ps1 @@ -76,7 +76,17 @@ param ( [switch] $Force, [Parameter()] - [switch] $OutFile + [switch] $OutFile, + + [Parameter()] + [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 ) # By default stop for any error.