Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Azure数据工厂中创建触发器期间使用参数查找文件_Azure_Azure Data Factory_Azure Data Lake_Azure Triggers - Fatal编程技术网

在Azure数据工厂中创建触发器期间使用参数查找文件

在Azure数据工厂中创建触发器期间使用参数查找文件,azure,azure-data-factory,azure-data-lake,azure-triggers,Azure,Azure Data Factory,Azure Data Lake,Azure Triggers,我正在尝试创建一个触发器,用于在ADF中启动管道: 要设置触发器的文件夹可以有不同的路径: 202001/Test/trigger文件夹 202002/Test/trigger文件夹 202003/Test/trigger文件夹 等等 因此,在我的Blob路径以开始时,我希望使用一个参数(我将通过另一个管道在其他地方设置)告诉触发器在哪里查找,而不是使用静态名称文件 不幸的是,它似乎没有给我在数据集中添加动态内容的机会。 如果真的没有机会,因为我可能认为触发器是实例化过一次的东西,那么有没

我正在尝试创建一个触发器,用于在ADF中启动管道:

要设置触发器的文件夹可以有不同的路径:

  • 202001/Test/trigger文件夹
  • 202002/Test/trigger文件夹
  • 202003/Test/trigger文件夹
等等

因此,在我的Blob路径以开始时,我希望使用一个参数(我将通过另一个管道在其他地方设置)告诉触发器在哪里查找,而不是使用静态名称文件

不幸的是,它似乎没有给我在数据集中添加动态内容的机会。 如果真的没有机会,因为我可能认为触发器是实例化过一次的东西,那么有没有办法在管道中创建一个触发器作为一个步骤


谢谢大家!

可以从Azure数据工厂的“ARM模板”传递参数。在管道部署期间,可以通过必要的值传递此参数。下面是它的示例代码

示例代码:

   {
        "name": "[concat(parameters('factoryName'), '/trigger1')]",
        "type": "Microsoft.DataFactory/factories/triggers",
        "apiVersion": "2018-06-01",
        "properties": {
            "annotations": [],
            "runtimeState": "Stopped",
            "pipelines": [],
            "type": "BlobEventsTrigger",
          "typeProperties": {
            "blobPathBeginsWith": "[parameters('trigger1_properties_typeProperties_blobPathBeginsWith')]",
            "ignoreEmptyBlobs": true,
            "scope": "[parameters('trigger1_properties_typeProperties_scope')]",
            "events": [
              "Microsoft.Storage.BlobCreated"
            ]
          }
        },

有可能从Azure数据工厂的“ARM模板”传递参数。在管道部署期间,可以通过必要的值传递此参数。下面是它的示例代码

示例代码:

   {
        "name": "[concat(parameters('factoryName'), '/trigger1')]",
        "type": "Microsoft.DataFactory/factories/triggers",
        "apiVersion": "2018-06-01",
        "properties": {
            "annotations": [],
            "runtimeState": "Stopped",
            "pipelines": [],
            "type": "BlobEventsTrigger",
          "typeProperties": {
            "blobPathBeginsWith": "[parameters('trigger1_properties_typeProperties_blobPathBeginsWith')]",
            "ignoreEmptyBlobs": true,
            "scope": "[parameters('trigger1_properties_typeProperties_scope')]",
            "events": [
              "Microsoft.Storage.BlobCreated"
            ]
          }
        },