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

az storage upload file not working as expected

我一直在尝试按照此 link 将文件夹上传到 azure file share,它对我不起作用,这真的像 link 中提到的那样有效,还是我们需要做任何额外的事情才能让它发挥作用。这是我从 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

我不确定我在这里错过了什么。如有任何帮助,我们将不胜感激。

不要为目的地指定 .,请尝试指定 share name

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