【问题标题】:Copy files to Azure Blob storage in different suscriptions with Azure DevOps使用 Azure DevOps 将文件复制到不同订阅中的 Azure Blob 存储
【发布时间】:2019-07-28 01:58:52
【问题描述】:

我有一个 Azure DevOps 版本,其任务之一必须将文件从 Azure 存储库复制到 Blob 存储。我使用 Azure 文件复制任务,如果 blob 存储位于包含在 Azure DevOps 中的同一个 Azure 订阅中,则它可以完美运行。但在其中一个阶段,我必须部署到不同的 Azure 订阅,在这种情况下,任务失败并且我收到一个没有信息的错误:

2019-02-25T07:50:33.9773339Z ##[error]Upload to container: 'containerName' in storage account: 'storageAccountName' with blob prefix: '' failed with error: '' For more info please refer to https://aka.ms/azurefilecopyreadme

我想是因为权限的问题,但是不知道怎么配置。

有什么想法吗?

【问题讨论】:

    标签: azure azure-devops azure-blob-storage azcopy


    【解决方案1】:

    但在其中一个阶段,我必须部署到不同的 Azure 订阅,并且在这种情况下。

    如果要将文件复制到不同 Azure 订阅中的 Azure 存储,则需要创建 Azure 服务连接字符串。然后您可以从 Azure 订阅下拉列表中选择相应的订阅。

    有关如何创建 Azure 资源管理器服务连接的详细步骤,请参阅official document

    注意:别忘了assign role to the service principal

    【讨论】:

      猜你喜欢
      • 2021-12-04
      • 2020-08-18
      • 2021-07-29
      • 2019-04-01
      • 2017-05-06
      • 1970-01-01
      • 2020-11-01
      • 2019-07-06
      • 2022-01-07
      相关资源
      最近更新 更多