Skip to content

Commit 6e6648a

Browse files
azure-sdkbenbpdanieljurek
authored
Sync eng/common directory with azure-sdk-tools for PR 8377 (#35915)
* Plumb env vars through deploy test resources * Update eng/common/TestResources/deploy-test-resources.yml Co-authored-by: Daniel Jurek <[email protected]> * Update eng/common/TestResources/deploy-test-resources.yml Co-authored-by: Daniel Jurek <[email protected]> --------- Co-authored-by: Ben Broderick Phillips <[email protected]> Co-authored-by: Daniel Jurek <[email protected]>
1 parent 215bb40 commit 6e6648a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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)