通过Shell命令上传本地文件到blob容器

问题描述 投票:0回答:1

az 存储 blob 上传批量 -d "$web" -s

当我运行此命令时,遇到错误“argument --source/-s:预期一个参数

我要在这里添加什么?对于源代码,我如何获取目录路径?

我尝试过这个命令“az storage blob upload-batch -d“$web”-s /home/cloud/index.html”

azure containers azure-cli azure-static-web-app azure-static-website-hosting
1个回答
0
投票

我同意@Jayendran,你可以使用这个命令:

az storage blob upload-batch -d mycontainer --account-name mystorageaccount --account-key 00000000 -s <path-to-directory>

确保使用您在引用中提到的文件的文件路径 像这样`“/home/cloud/index.html”

© www.soinside.com 2019 - 2024. All rights reserved.