File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -421,7 +421,15 @@ jobs:
421421 azureSubscription : TsPerfStorage
422422 scriptType : ' bash'
423423 scriptLocation : ' inlineScript'
424+ addSpnToEnvironment : true
424425 inlineScript : |
426+ # Force these credentials to be used in case the pool itself has an identity (which takes priority over the CLI).
427+ # https://learn.microsoft.com/en-us/azure/developer/javascript/sdk/authentication/credential-chains#use-defaultazurecredential-for-flexibility
428+ # https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#service-principal-with-secret
429+ export AZURE_CLIENT_ID="${servicePrincipalId}"
430+ export AZURE_TENANT_ID="${tenantId}"
431+ export AZURE_CLIENT_SECRET="${servicePrincipalKey}"
432+
425433 set -exo pipefail
426434 for KIND in $(TSPERF_PROCESS_KINDS); do
427435 echo "Uploading ${KIND} benchmarks"
You can’t perform that action at this time.
0 commit comments