gpt4 book ai didi

Azure:无法将存档 blob 从一个存储帐户复制到另一个存储帐户?

转载 作者:行者123 更新时间:2023-12-02 23:09:55 24 4
gpt4 key购买 nike

每当我尝试将存档 blob 复制到不同的存储帐户并更改其在目标中的层时。我收到以下错误:

Copy source blob has been modified. ErrorCode: CannotVerifyCopySource

我尝试将热/冷 blob 复制到热/冷/存档。我仅在将存档复制到热/冷/存档时遇到此问题。此外,在同一存储帐户中复制时也没有问题。

我正在使用 Azure python SDK:

blob_url = source_block_blob_service.make_blob_url(copy_from_container, blob_name, sas_token = sas)

dest_blob_service.copy_blob(copy_to_container, blob_name, blob_url, requires_sync = True, standard_blob_tier = 'Hot')

最佳答案

您收到此错误的原因是,仅在同一存储帐户中支持复制存档的 blob,而您正在不同的存储帐户中尝试复制。

来自REST API文档页面:

Copying Archived Blob (version 2018-11-09 and newer)

An archived blob can be copied to a new blob within the same storage account. This will still leave the initially archived blob as is. When copying an archived blob as source the request must contain the header x-ms-access-tier indicating the tier of the destination blob. The data will be eventually copied to the destination blob.

关于Azure:无法将存档 blob 从一个存储帐户复制到另一个存储帐户?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58555608/

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