gpt4 book ai didi

azure - az 存储上传文件未按预期工作

转载 作者:行者123 更新时间:2023-12-02 08:30:03 24 4
gpt4 key购买 nike

我一直在尝试按照此 link 将文件夹上传到 azure 文件共享 ,它对我来说永远不起作用,这真的像该链接中提到的那样起作用吗?还是我们需要做任何额外的事情才能使其起作用。这是我在 shell 中执行的操作,只需运行 URL

中提到的以下命令
az storage file upload-batch --connection-string "DefaultEndpointsProtocol=https;AccountName=asdadasd;AccountKey=ahdsidyagdasgdhasdghdgasdasjdag4857348574;EndpointSuffix=core.windows.net" --destination . --source /dfiles/folder

我收到以下错误

Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. ErrorCode: AuthenticationFailed
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:af9004d7-301a-0069-26e8-25db2b000000
Time:2020-05-09T09:57:19.5414005Z</Message><AuthenticationErrorDetail>The MAC signature found in the HTTP request 'gDQ+MYQgNglorkiZ3LkmHHNI56odT4FfxesXUhlK/TY=' is not the same as any computed signature. Server used following string to sign: 'PUT
x-ms-client-request-id:7747952b-91db-11ea-a2c1-000d3af2c73b
x-ms-content-length:90592
x-ms-date:Sat, 09 May 2020 09:57:19 GMT
x-ms-type:file
x-ms-version:2018-11-09
/storage/createdump'.</AuthenticationErrorDetail></Error

我不确定我在这里错过了什么。对此的任何帮助将不胜感激。

最佳答案

请尝试指定共享名称,而不是指定.作为目标。

az storage file upload-batch --connection-string "DefaultEndpointsProtocol=https;AccountName=asdadasd;AccountKey=ahdsidyagdasgdhasdghdgasdasjdag4857348574;EndpointSuffix=core.windows.net" --destination <share-name> --source /dfiles/folder

关于azure - az 存储上传文件未按预期工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61695016/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com