Force using aad auth for storage upload (#4458)
This commit is contained in:
Родитель
a336c93709
Коммит
66e847c71b
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче