From 728f70bf6e28482b995dce865d8e318325bea7c1 Mon Sep 17 00:00:00 2001 From: Cheena Malhotra <13396919+cheenamalhotra@users.noreply.github.com> Date: Wed, 12 Apr 2023 20:24:52 -0700 Subject: [PATCH] Append Endpoint suffix (#22704) --- build/azure-pipelines/common/publish.js | 2 +- build/azure-pipelines/common/publish.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/azure-pipelines/common/publish.js b/build/azure-pipelines/common/publish.js index 42a9ade84c..4989547c7b 100644 --- a/build/azure-pipelines/common/publish.js +++ b/build/azure-pipelines/common/publish.js @@ -153,7 +153,7 @@ async function publish(commit, quality, platform, type, name, version, _isUpdate const blobName = commit + '/' + name; const storageAccount = process.env['AZURE_STORAGE_ACCOUNT_2']; const storageKey = process.env['AZURE_STORAGE_ACCESS_KEY_2']; - const connectionString = `DefaultEndpointsProtocol=https;AccountName=${storageAccount};AccountKey=${storageKey}`; + const connectionString = `DefaultEndpointsProtocol=https;AccountName=${storageAccount};AccountKey=${storageKey};EndpointSuffix=core.windows.net`; let blobServiceClient = storage_blob_1.BlobServiceClient.fromConnectionString(connectionString, { retryOptions: { maxTries: 20, diff --git a/build/azure-pipelines/common/publish.ts b/build/azure-pipelines/common/publish.ts index 407501bd42..5eacff2ffa 100644 --- a/build/azure-pipelines/common/publish.ts +++ b/build/azure-pipelines/common/publish.ts @@ -188,7 +188,7 @@ async function publish(commit: string, quality: string, platform: string, type: const blobName = commit + '/' + name; const storageAccount = process.env['AZURE_STORAGE_ACCOUNT_2']!; const storageKey = process.env['AZURE_STORAGE_ACCESS_KEY_2']!; - const connectionString = `DefaultEndpointsProtocol=https;AccountName=${storageAccount};AccountKey=${storageKey}`; + const connectionString = `DefaultEndpointsProtocol=https;AccountName=${storageAccount};AccountKey=${storageKey};EndpointSuffix=core.windows.net`; let blobServiceClient = BlobServiceClient.fromConnectionString(connectionString, { retryOptions: {