diff --git a/eng/common/TestResources/deploy-test-resources.yml b/eng/common/TestResources/deploy-test-resources.yml index b4197dc236d..724dfd8addb 100644 --- a/eng/common/TestResources/deploy-test-resources.yml +++ b/eng/common/TestResources/deploy-test-resources.yml @@ -3,6 +3,7 @@ parameters: ArmTemplateParameters: '@{}' DeleteAfterHours: 8 Location: '' + EnvVars: {} SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) ServiceConnection: not-specified ResourceType: test @@ -47,6 +48,7 @@ steps: displayName: Deploy test resources env: TEMP: $(Agent.TempDirectory) + ${{ insert }}: ${{ parameters.EnvVars }} inputs: azureSubscription: ${{ parameters.ServiceConnection }} azurePowerShellVersion: LatestVersion @@ -106,3 +108,4 @@ steps: displayName: Deploy test resources env: TEMP: $(Agent.TempDirectory) + ${{ insert }}: ${{ parameters.EnvVars }} diff --git a/eng/common/TestResources/remove-test-resources.yml b/eng/common/TestResources/remove-test-resources.yml index 89aa7d825e4..5009eb53f2a 100644 --- a/eng/common/TestResources/remove-test-resources.yml +++ b/eng/common/TestResources/remove-test-resources.yml @@ -6,6 +6,7 @@ parameters: SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) ServiceConnection: not-specified ResourceType: test + EnvVars: {} UseFederatedAuth: false SubscriptionConfigurationFilePath: '' @@ -29,6 +30,7 @@ steps: displayName: Remove test resources condition: and(eq(variables['CI_HAS_DEPLOYED_RESOURCES'], 'true'), ne(variables['Skip.RemoveTestResources'], 'true')) continueOnError: true + env: ${{ parameters.EnvVars }} inputs: azureSubscription: ${{ parameters.ServiceConnection }} azurePowerShellVersion: LatestVersion @@ -78,3 +80,4 @@ steps: displayName: Remove test resources condition: and(eq(variables['CI_HAS_DEPLOYED_RESOURCES'], 'true'), ne(variables['Skip.RemoveTestResources'], 'true')) continueOnError: true + env: ${{ parameters.EnvVars }}