c# - 如何使用输入参数在 azure data factory 中运行 exe 文件?
问题描述
我有一个控制台应用程序。我构建了这个应用程序并将其上传到 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"
}
}
这是我迄今为止在数据工厂管道代码中所做的。
解决方案
请参考 中的extendedProperties
属性typeProperties
,您可以使用它。
可以以 JSON 格式传递给自定义应用程序的用户定义属性,以便您的自定义代码可以引用其他属性
推荐阅读
- javascript - 在 JavaScript 中更新对象属性的更短方法?
- xamarin.forms - 如何在 xamarin 表单中更改搜索栏搜索图标的颜色和取消按钮颜色
- ruby-on-rails - Rails RSS Feed 未呈现为 XML
- python - Pyspark Luigi 多个工人问题
- python - 检测数据框中的特定字符
- python - Binance 期货测试网上的空头订单导致 APIError(ReduceOnly 订单被拒绝)
- python - 无法单击 xpath 选定对象 Selenium (Python)
- swiftui - 如何影响 SwiftUI contextMenu 展示位置?
- c++ - 如何在 c++ 中为 QSortFilterProxyModel 定义函数“过滤器”?
- vba - excel VBA中的错误“ODBC驱动程序不支持请求的属性”