Skip to content

Commit

Permalink
use manual variables
Browse files Browse the repository at this point in the history
  • Loading branch information
vhvb1989 committed Oct 3, 2024
1 parent 428482f commit 19984f4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions eng/pipelines/templates/steps/template-test-run-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ steps:
env: |
# Required secrets for Terraform service principal authentication
# $(arm-*) secrets are set by azd-login.yml
ARM_CLIENT_ID=$(arm-client-id)
ARM_CLIENT_SECRET=$(arm-client-secret)
ARM_TENANT_ID=$(arm-tenant-id)
ARM_CLIENT_ID=$(arm-client-id-test-tenant)
ARM_CLIENT_SECRET=$(arm-client-secret-test-tenant)
ARM_TENANT_ID=$(arm-tenant-id-test-tenant)
SUBSCRIPTION_ID=$(SubscriptionId)
# Pass in TemplateRunEnvironmentVariables
Expand Down Expand Up @@ -114,16 +114,16 @@ steps:
# Login azd
azd auth login \
--client-id "$(arm-client-id)" \
--client-secret "$(arm-client-secret)" \
--tenant-id "$(arm-tenant-id)"
--client-id "$(arm-client-id-test-tenant)" \
--client-secret "$(arm-client-secret-test-tenant)" \
--tenant-id "$(arm-tenant-id-test-tenant)"
# Login az CLI (required for scenarios where az is invoked)
az login \
--service-principal \
-u "$(arm-client-id)" \
-p "$(arm-client-secret)" \
--tenant "$(arm-tenant-id)"
-u "$(arm-client-id-test-tenant)" \
-p "$(arm-client-secret-test-tenant)" \
--tenant "$(arm-tenant-id-test-tenant)"
# set default sub for az to be the same used by azd
az account set --subscription "$(SubscriptionId)"
Expand Down

0 comments on commit 19984f4

Please sign in to comment.