Append Endpoint suffix (#22704)

This commit is contained in:
Cheena Malhotra
2023-04-12 20:24:52 -07:00
committed by GitHub
parent 897f026d1e
commit 728f70bf6e
2 changed files with 2 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ async function publish(commit, quality, platform, type, name, version, _isUpdate
const blobName = commit + '/' + name; const blobName = commit + '/' + name;
const storageAccount = process.env['AZURE_STORAGE_ACCOUNT_2']; const storageAccount = process.env['AZURE_STORAGE_ACCOUNT_2'];
const storageKey = process.env['AZURE_STORAGE_ACCESS_KEY_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, { let blobServiceClient = storage_blob_1.BlobServiceClient.fromConnectionString(connectionString, {
retryOptions: { retryOptions: {
maxTries: 20, maxTries: 20,

View File

@@ -188,7 +188,7 @@ async function publish(commit: string, quality: string, platform: string, type:
const blobName = commit + '/' + name; const blobName = commit + '/' + name;
const storageAccount = process.env['AZURE_STORAGE_ACCOUNT_2']!; const storageAccount = process.env['AZURE_STORAGE_ACCOUNT_2']!;
const storageKey = process.env['AZURE_STORAGE_ACCESS_KEY_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, { let blobServiceClient = BlobServiceClient.fromConnectionString(connectionString, {
retryOptions: { retryOptions: {