【问题标题】:how to run exe file in azure data factroy with input parameters?如何使用输入参数在 azure 数据工厂中运行 exe 文件?
【发布时间】:2019-03-01 21:11:04
【问题描述】:

我有一个控制台应用程序。我构建了这个应用程序并将其上传到 Azure blob 存储。然后我运行这个应用程序 Azure 数据工厂管道。一切都很好,但问题是如果我想向控制台应用程序添加新参数(获取输入)我该怎么做?有什么具体的方法吗?

 {
    "name": "samplebatch",
    "type": "Custom",
    "policy": {
        "timeout": "7.00:00:00",
        "retry": 0,
        "retryIntervalInSeconds": 30,
        "secureOutput": false
    },    
"typeProperties": {
        "command": "SampleApp.exe",
        "folderPath": "customactv2/SampleApp",
        "resourceLinkedService": {
          "referenceName": "StorageLinkedService",
          "type": "LinkedServiceReference"
        }
   "linkedServiceName": {
        "referenceName": "dataloadbatchservice",
        "type": "LinkedServiceReference"
    }
}

这是我迄今为止在数据工厂管道代码中所做的。

【问题讨论】:

  • 您好,我的回答对您有帮助吗?
  • 是的,谢谢您的回复。抱歉迟到了。

标签: c# azure azure-blob-storage azure-data-factory


【解决方案1】:

请参考typeProperties中的extendedProperties属性,可以使用。

可以传递给自定义应用程序的用户定义属性 JSON 格式,以便您的自定义代码可以引用其他属性

文档:https://docs.microsoft.com/en-us/azure/data-factory/transform-data-using-dotnet-custom-activity#custom-activity

示例:https://github.com/Azure/Azure-DataFactory/blob/master/Samples/ADFv2CustomActivitySample/MyCustomActivityPipeline.json

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-12-13
    • 2021-10-30
    • 1970-01-01
    • 2019-02-12
    • 2020-02-06
    • 1970-01-01
    • 2020-06-13
    • 1970-01-01
    相关资源
    最近更新 更多