如何在运行时将参数传递给数据工厂中的链接服务?
我在我的Azure函数链接服务定义中定义和使用了一个参数,但我不确定如何在我的管道操作中调用期间设置它。在这种情况下,我想在触发器中设置functionAlias来设置Azure函数主机名。当前在(blob create)触发器上返回一个异常,声明未指定functionAlias。
管道
{
"name": "myActivity",
"type": "AzureFunctionActivity",
"typeProperties": {
"functionName": "myFunctionName",
"method": "POST"
}
"linkedServiceName": {
"referenceName": "myFunctionLinkedService",
"type": "LinkedServiceReference"
}
}
链接服务
{
"name": "myFunctionLinkedService",
"type": "Microsoft.DataFactory/factories/linkedservices",
"properties": {
"type": "AzureFunction",
"typeProperties": {
"functionAppUrl": "https://@{linkedService().functionAlias}.azurewebsites.net",
"encryptedCredential": ""
},
"parameters": {
"functionAlias": {
"type": "String"
}
}
}
}
https://stackoverflow.com/questions/54076004
复制相似问题