Trigger Azure Data Factory Pipeline from Logic App w/ Parameter

前端 未结 3 1958
终归单人心
终归单人心 2020-12-18 14:06

Let me preface that I\'m a noob to Logic Apps and Data Factory. Anyways, I\'m currently working on an integration and one part of it is that I need to trigger a pipeline in

3条回答
  •  没有蜡笔的小新
    2020-12-18 14:39

    You can use the body property of the logic app's "Create a pipeline run" action to pass parameters to the pipeline. As always, be careful because not only is this action in preview but I also couldn't find this solution in any MS documentation. I just made an educated guess based on how other similar actions are formatted.

    Example:

    "Run_my_pipeline": {
      "inputs": {
        "host": {
          "connection": {
            "name": "@parameters('$connections')['azuredatafactory']['connectionId']"
          }
        },
        "method": "post",
        "body": {
          "param1": "myParamValue",
          "param2": "myParamValue"
        },
        "path": "...",
        "queries": {
          "x-ms-api-version": "2017-09-01-preview"
        },
        "authentication": "@parameters('$authentication')"
      }
    }
    

提交回复
热议问题