You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eng/common/TestResources/SubConfig-Helpers.ps1
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -109,11 +109,17 @@ function SetSubscriptionConfiguration([object]$subscriptionConfiguration)
109
109
# Mark values as secret so we don't print json blobs containing secrets in the logs.
110
110
# Prepend underscore to the variable name, so we can still access the variable names via environment
111
111
# variables if they get set subsequently.
112
+
if ([Environment]::GetEnvironmentVariable($nestedPair.Name)) {
113
+
throw"Environment variable '$($nestedPair.Name)' is already set. Check the tests.yml/ci.yml EnvVars parameter does not conflict with the subscription config json"
114
+
}
112
115
if (ShouldMarkValueAsSecret "AZURE_"$nestedPair.Name$nestedPair.Value) {
if ([Environment]::GetEnvironmentVariable($pair.Name)) {
121
+
throw"Environment variable '$($pair.Name)' is already set. Check the tests.yml/ci.yml EnvVars parameter does not conflict with the subscription config json"
122
+
}
117
123
if (ShouldMarkValueAsSecret "AZURE_"$pair.Name$pair.Value) {
0 commit comments