azure - 将数据从一个 azure 帐户的容器复制到另一个 azure 帐户的容器

标签 azure azure-functions azure-blob-storage azure-data-factory

我是 Azure 的新手,我想将容器的数据从一个 Azure 容器复制到另一个容器。 (注意:容器位于两个不同的 Azure 帐户中)。我只能访问源容器,而目标容器是我自己的容器,因此我可以完全访问它。源容器的所有者声称只允许一个特定的IP访问容器的资源。 那么我应该使用哪种方法? a) 数据工厂 b) Azure 函数 c) AZ副本

我尝试使用数据工厂,但在链接服务时卡住了。我能够链接同一帐户的存储,但无法链接到完全不同帐户的存储。我尝试使用 SAS 链接该服务,但始终出现 403 问题。我也尝试编写 python 脚本,但每当我尝试上传到目标容器时,它都会出现资源未找到的问题。

最佳答案

我已经在我的环境中重现并得到了如下预期结果,我按照 Microsoft-Document 进行操作:

首先是源帐户文件:

enter image description here

然后使用以下命令:

azcopy copy 'https://sourcestorage.blob.core.windows.net/sourcecontiner?sastoken' 'https://destinationstorage.blob.core.windows.net/destinationcontainer?sastoken' --recursive

具有以下权限:

在源 Blob 上:

enter image description here

在目标 Blob 上:

enter image description here

我收到了如下相同的错误:

输出:

enter image description here

然后我授予了 Source 和 blob 的所有权限,如下所示:

enter image description here

输出:

enter image description here

然后在目标存储帐户中:

enter image description here

关于azure - 将数据从一个 azure 帐户的容器复制到另一个 azure 帐户的容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75839525/

相关文章:

javascript - 如何在不使用普通 Azure Auth2 提供的登录链接的情况下访问 Azure 登录 Api

azure - HTTP错误: 403 Client Error: Forbidden for url via Office365-REST-Python-Client

function - Azure功能应用程序日志不显示

c# - 如何从 Azure Blob 存储 C# 中的文件 URL 获取容器名称

postgresql - 将 Azure Blob 存储用于 postgresql 数据库

在虚拟网络中创建应用程序服务插槽时出现 Azure REST Api 500 内部服务器错误

c# - 如何使用.NET将大文件上传到azure容器?

azure-functions - 如何在同一个Function App下组织多个Http Function

azure - 启用 vnet 集成时,限制从特定 azure 功能对存储帐户的专用终结点的网络访问

javascript - 使用域路由管理同一域名下的两个不同的 Azure 资源