Force using aad auth for storage upload (#4458)

This commit is contained in:
Timothee Guerin 2024-09-16 14:44:19 -07:00 коммит произвёл GitHub
Родитель a336c93709
Коммит 66e847c71b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
3 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -43,6 +43,7 @@ extends:
scriptLocation: inlineScript
inlineScript: |
az storage blob upload-batch \
--auth-mode login \
--destination \$web \
--account-name "cadlplayground" \
--destination-path $(TYPESPEC_WEBSITE_BASE_PATH) \
@ -56,6 +57,7 @@ extends:
scriptLocation: inlineScript
inlineScript: |
az storage blob upload-batch \
--auth-mode login \
--destination \$web \
--account-name "tspwebsitepr" \
--destination-path $(TYPESPEC_WEBSITE_BASE_PATH) \

Просмотреть файл

@ -86,6 +86,7 @@ extends:
scriptLocation: inlineScript
inlineScript: |
az storage blob upload-batch ^
--auth-mode login ^
--destination $web ^
--account-name "cadlplayground" ^
--destination-path / ^

Просмотреть файл

@ -88,5 +88,8 @@ async function request(method: string, url: string, data: any): Promise<string>
body: data.body,
});
if (!response.ok) {
throw new Error(`Request failed: ${response.statusText}\n\n` + (await response.text()));
}
return response.text();
}