Skip to content

Commit d9cf292

Browse files
benbpdanieljurek
authored andcommitted
Plumb env vars through deploy test resources (Azure#8377)
* Plumb env vars through deploy test resources * Update eng/common/TestResources/deploy-test-resources.yml Co-authored-by: Daniel Jurek <djurek@microsoft.com> * Update eng/common/TestResources/deploy-test-resources.yml Co-authored-by: Daniel Jurek <djurek@microsoft.com> --------- Co-authored-by: Daniel Jurek <djurek@microsoft.com>
1 parent ed139dd commit d9cf292

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

eng/common/TestResources/deploy-test-resources.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ parameters:
33
ArmTemplateParameters: '@{}'
44
DeleteAfterHours: 8
55
Location: ''
6+
EnvVars: {}
67
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
78
ServiceConnection: not-specified
89
ResourceType: test
@@ -47,6 +48,7 @@ steps:
4748
displayName: Deploy test resources
4849
env:
4950
TEMP: $(Agent.TempDirectory)
51+
${{ insert }}: ${{ parameters.EnvVars }}
5052
inputs:
5153
azureSubscription: ${{ parameters.ServiceConnection }}
5254
azurePowerShellVersion: LatestVersion
@@ -106,3 +108,4 @@ steps:
106108
displayName: Deploy test resources
107109
env:
108110
TEMP: $(Agent.TempDirectory)
111+
${{ insert }}: ${{ parameters.EnvVars }}

eng/common/TestResources/remove-test-resources.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ parameters:
66
SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources)
77
ServiceConnection: not-specified
88
ResourceType: test
9+
EnvVars: {}
910
UseFederatedAuth: false
1011
SubscriptionConfigurationFilePath: ''
1112

@@ -29,6 +30,7 @@ steps:
2930
displayName: Remove test resources
3031
condition: and(eq(variables['CI_HAS_DEPLOYED_RESOURCES'], 'true'), ne(variables['Skip.RemoveTestResources'], 'true'))
3132
continueOnError: true
33+
env: ${{ parameters.EnvVars }}
3234
inputs:
3335
azureSubscription: ${{ parameters.ServiceConnection }}
3436
azurePowerShellVersion: LatestVersion
@@ -78,3 +80,4 @@ steps:
7880
displayName: Remove test resources
7981
condition: and(eq(variables['CI_HAS_DEPLOYED_RESOURCES'], 'true'), ne(variables['Skip.RemoveTestResources'], 'true'))
8082
continueOnError: true
83+
env: ${{ parameters.EnvVars }}

0 commit comments

Comments
 (0)