azure - 如何在Azure数据工厂管道复制数据任务中使用变量

标签 azure azure-pipelines azure-data-factory azure-pipelines-tasks

我在 Azure 数据工厂中创建了一个管道,它有两个作业

  1. 从 Synapse 读取并写入文件。
  2. 写入另一个没有内容的文件

两个文件名应该相同。

我尝试的是创建一个变量并使用该变量作为文件名。

Variable

但我无法在复制数据同步数据集中使用该变量。

enter image description here

如何在多个任务中使用该变量?

最佳答案

要传递数据集中的管道变量,需要先创建数据集参数,并从管道中传递数据集参数值。

  1. 创建数据集参数。

enter image description here

  • 在需要传递管道变量的数据集中添加数据集参数。
  • enter image description here

  • 将管道变量分配给属性下的数据集参数。
  • enter image description here

    关于azure - 如何在Azure数据工厂管道复制数据任务中使用变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71476136/

    相关文章:

    azure - BringOwnFeatureNotEnabled 错误代码在 Azure 中意味着什么

    Azure ADF v2-如何向部署到 Azure Data Lake 的文件名添加/附加时间戳

    azure - 使用 azure 数据工厂将数据从 azure 追加 blob 提取到 kusto 数据库时出错

    azure - 通配符路径的 ADF 复制事件问题

    azure - 什么类型的 Azure 应用服务来托管网络核心控制台应用程序?

    Azure 资源组 (2.9) 错误 : PowerShell deployment script is missing

    azure-devops - 在我的 Azure DevOps YAML Pipeline 中,如何将一堆阶段转换为作业矩阵?

    azure-devops - 是否可以将 html 报告与 VSTS 构建摘要集成?

    .net - 删除 Azure 上的特定 Application Insights 事件

    Azure DevOps Pipelines 停止运行