在Azure Data Factory-v2端:
-
See this image for how to fill fields in settings tab
-
在成功触发逻辑应用程序后,您已经在“设置”选项卡中找到了进入URL和方法字段的内容。
-
假设我们希望以JSON(首选方式)发送参数。将“名称”标题字段设置为“内容类型”,将“值”设置为“应用程序/json”。
-
在正文中,以JSON的形式向您发送参数。让我们发送以下虚拟参数
{"Location":"northeurope","Model":"dummy_model","Server_name":"dummy_service","Onwer_email":"dummy@dummy.com"}
-
您已经为logic app使用了“收到HTTP请求时”触发器。
-
在“请求正文JSON模式”字段中,输入以下模式以捕获从ADFv2 web活动发送的参数:
{
"properties": {
"Location": {
"type": "string"
},
"Model": {
"type": "string"
},
"Onwer_email": {
"type": "string"
},
"Server_name": {
"type": "string"
}
},
"type": "object"
}
See this image for help
-
您还可以使用“使用示例负载生成模式”,而不是执行上面的步骤2。使用此选项时,只需粘贴在ADFv2 web活动主体中传递的json。它将自动生成JSON模式以捕获参数。
-
-
在逻辑应用程序的后续步骤中(例如初始化变量步骤),您现在可以使用“添加动态内容”选项将上面设置的参数(位置、型号、Onwer_电子邮件和服务器名称)用作动态内容。
See this image for help.