Skip to content

Commit 4317d52

Browse files
authored
Fix blob upload identity (#96)
1 parent e254e73 commit 4317d52

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

build/benchmark.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)