使用REST API将Blob复制到另一个存储帐户会出现404错误

时间:2018-08-27 02:14:27

标签: azure azure-storage azure-storage-blobs

在Logic App中,我使用Blob Service Rest API在不同帐户之间复制Blob。

我在源URL和目标URL上都有SAS签名。不知道我在做什么错。

enter image description here

更新

从Dynamics 365端点获取目标URL(使用SAS)。并返回值为2014-02-14的sv。可能是问题所在(sv太旧,如注释中所建议)?

通过读取源Blob的内容并在包含该内容(Put Blob的目标URL上创建Blob,我设法以另一种方式复制了Blob。

enter image description here

1 个答案:

答案 0 :(得分:2)

一些信息供您参考。

我在门户中生成SAS令牌,然后将存储帐户A中的Blob复制到B,然后在logicapp中对其进行测试,效果很好。

生成SAS:

enter image description here

请求网址:

Put https://storageB.blob.core.windows.net/containername/testcopy1?sv=2017-11-09&ss=bfqt&srt=sco&sp=rwdlacup&se=2018-08-27T10:43:40Z&st=2018-08-27T02:43:40Z&spr=https&sig=xxxxxxx

请求标头:

x-ms-copy-source:https://storageA.blob.core.windows.net/containername/2.5.txt?sv=2017-11-09&ss=bfqt&srt=sco&sp=rwdlacup&se=2018-08-27T10:59:19Z&st=2018-08-27T02:59:19Z&spr=https&sig=xxxxxx

在LogicApp中:

enter image description here

签入门户:

enter image description here

更新

我认为这显然是问题所在。

引用:version mentioned in the article

相关问题