File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
eng/pipelines/templates/steps Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -82,16 +82,17 @@ steps:
8282 pwsh : true
8383 ScriptType : InlineScript
8484 Inline : >-
85+ $account = (Get-AzContext).Account;
86+ $env:AZURESUBSCRIPTION_CLIENT_ID = $account.Id;
87+ $env:AZURESUBSCRIPTION_TENANT_ID = $account.Tenants;
88+
8589 if ($IsWindows) {
8690 . $(VENV_LOCATION)/Scripts/Activate.ps1
8791 }
8892 else {
8993 . $(VENV_LOCATION)/bin/activate.ps1
9094 }
9195 Write-Host (Get-Command python).Source
92- $account = (Get-AzContext).Account;
93- $env:AZURESUBSCRIPTION_CLIENT_ID = $account.Id;
94- $env:AZURESUBSCRIPTION_TENANT_ID = $account.Tenants;
9596
9697 python scripts/devops_tasks/dispatch_tox.py
9798 "$(TargetingString)"
@@ -166,16 +167,17 @@ steps:
166167 pwsh : true
167168 ScriptType : InlineScript
168169 Inline : >-
170+ $account = (Get-AzContext).Account;
171+ $env:AZURESUBSCRIPTION_CLIENT_ID = $account.Id;
172+ $env:AZURESUBSCRIPTION_TENANT_ID = $account.Tenants;
173+
169174 if ($IsWindows) {
170175 . $(VENV_LOCATION)/Scripts/Activate.ps1
171176 }
172177 else {
173178 . $(VENV_LOCATION)/bin/activate.ps1
174179 }
175180 Write-Host (Get-Command python).Source
176- $account = (Get-AzContext).Account;
177- $env:AZURESUBSCRIPTION_CLIENT_ID = $account.Id;
178- $env:AZURESUBSCRIPTION_TENANT_ID = $account.Tenants;
179181
180182 scripts/devops_tasks/dispatch_tox.py
181183 "$(TargetingString)"
You can’t perform that action at this time.
0 commit comments