无法将批量上传到存储帐户 [英] Can't upload-batch to storage account
问题描述
我正在尝试查看示例
https://docs.microsoft.com/zh-CN/azure/functions/tutorial-static-website-serverless-api-with-database
https://docs.microsoft.com/en-us/azure/functions/tutorial-static-website-serverless-api-with-database
我创建了我的存储帐户,并创建了外壳存储. (如果重要的话,都在美国东部)
I have my storage account created and my shell storage created. (both in East US, if that matters)
我克隆并编译了网站.
当我运行上传命令时,我得到了:
When I run the command to upload I get this:
PS/home/chris/functions-first-xxxxxx-web-application/www/dist> az storage blob upload-batch -s. -d \ $ web-帐户名称testxxxxxxxxxxx
上传/home/chris/functions-first-xxxxxx-web-application/www/dist/README.md
请求的URI不代表服务器上的任何资源.错误代码:InvalidUri
<?xml version ="1.0" encoding ="utf-8"?<错误><代码> InvalidUri</代码><消息>所请求的URI不代表服务器上的任何资源.
RequestId:-0000-0000-0000-000000
PS /home/chris/functions-first-xxxxxx-web-application/www/dist> az storage blob upload-batch -s . -d \$web --account-name testxxxxxxxxxxx
uploading /home/chris/functions-first-xxxxxx-web-application/www/dist/README.md
The requested URI does not represent any resource on the server. ErrorCode: InvalidUri
<?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidUri</Code><Message>The requested URI does not represent any resource on the server.
RequestId:-0000-0000-0000-000000
该存储帐户名为testxxxxxxxxxxxx
The storage account is named testxxxxxxxxxxxx
推荐答案
<帐户-name>.<区域名称> .web.core.windows.net.
Web服务端点始终允许匿名读取访问,返回格式的HTML页面以响应服务错误,并且仅允许读取对象 操作. Web服务端点在根目录和所有子目录的请求目录中返回索引文档.
The web service endpoint always allows anonymous read access, returns formatted HTML pages in response to service errors, and allows only object read operations. The web service endpoint returns the index document in the requested directory for both the root and all sub directories.
有关详细信息,建议您参考 在Azure存储中托管静态网站.
For more information, suggest you to refer Static website hosting in Azure Storage.
span>
If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here
这篇关于无法将批量上传到存储帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!