【发布时间】:2018-06-18 13:33:06
【问题描述】:
我在不同阶段有不同的天蓝色功能, 当我部署我的逻辑应用程序时,我想配置调用什么 azure 函数。
我添加了一个新参数,名为:
"unzip_gzip_path": {
"value": "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/XXXTest/providers/Microsoft.Web/sites/FunctionApp201806XXXXXXXX/functions/Function1"
}
并像这样在手臂模板中使用他:
"$functions_paths": {
"value": {
"unzip_gzip": {
"path": "[parameters('unzip_gzip_path')]"
}
}
}
Azure 函数调用如下所示:
"Function1":{
"type": "Function",
"inputs": {
"body": "@items('For_each_attachment')?['ContentBytes']",
"method": "POST",
"function": {
"id": "@parameters('$functions_paths')['unzip_gzip']['path']"
}
},
"runAfter": {}
}
现在我得到了错误
15:31:34 - 15:31:33 - Resource Microsoft.Logic/workflows 'DMARCReportingProcessingLogicApp' failed with message '{
15:31:34 - "error": {
15:31:34 - "code": "LinkedInvalidPropertyId",
15:31:34 - "message": "Property id '@parameters('$functions_paths')['unzip_gzip']['path']' at path 'properties.definition.actions.For_each_attachment.actions.Condition.actions.Function1.inputs.function.id' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'."
15:31:34 - }
15:31:34 - }'
难道是我不能在函数位置使用参数?
【问题讨论】:
标签: azure-functions azure-logic-apps