mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Append Endpoint suffix (#22704)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user