diff --git a/eng/common/TestResources/remove-test-resources.yml b/eng/common/TestResources/remove-test-resources.yml index 5009eb53f2a9..b877d72139a2 100644 --- a/eng/common/TestResources/remove-test-resources.yml +++ b/eng/common/TestResources/remove-test-resources.yml @@ -8,7 +8,6 @@ parameters: ResourceType: test EnvVars: {} UseFederatedAuth: false - SubscriptionConfigurationFilePath: '' # SubscriptionConfiguration will be splat into the parameters of the test # resources script. It should be JSON in the form: @@ -39,20 +38,10 @@ steps: Inline: | eng/common/scripts/Import-AzModules.ps1 - - if ('${{ parameters.SubscriptionConfigurationFilePath }}' -ne '') { - $subscriptionConfiguration = ` - Get-Content '${{ parameters.SubscriptionConfigurationFilePath }}' ` - | ConvertFrom-Json -AsHashtable; - } else { - # Multiline string termination ("@) needs to be at the beginning - # of the line - $subscriptionConfiguration = @" - ${{ parameters.SubscriptionConfiguration }} + $subscriptionConfiguration = @" + ${{ parameters.SubscriptionConfiguration }} "@ | ConvertFrom-Json -AsHashtable; - } - eng/common/TestResources/Remove-TestResources.ps1 ` @subscriptionConfiguration ` -ResourceType '${{ parameters.ResourceType }}' `