【发布时间】:2020-03-03 01:52:42
【问题描述】:
我需要从我的 ADF 管道中动态调用 Azure 函数。
目前我可以通过 Azure Function Activity 对 functionName 进行参数化,但我无法对 functionKey 和 URL 进行参数化。
URL 没问题,因为我可以将所有函数存储在同一个 URL 下,但 functionKey 确实是必须的。
你现在有什么选择吗?
我尝试过的
json 中的参数与 DataStoreLinkedServices 一样:
{
"properties": {
"type": "AzureFunction",
"annotations": [],
"parameters": {
"functionSecret": {
"type": "String"
}
},
"typeProperties": {
"functionAppUrl": "https://<myurl>.azurewebsites.net",
"functionKey": {
"type": "AzureKeyVaultSecret",
"store": {
"referenceName": "KeyVaultLinkedService",
"type": "LinkedServiceReference"
},
"secretName": "@{linkedService().functionSecret}"
}
}
}
}
错误消息:
"code":"BadRequest","message":"No value provided for Parameter 'functionSecret'"
有没有办法做到这一点?这似乎并不明显,我在网上冲浪时也没有发现任何东西。最相似的是this
【问题讨论】:
标签: azure azure-functions azure-data-factory