如何部署调用 SQL DB 存储过程的逻辑应用?我尝试了以下操作。
"actions": {
"Execute_stored_procedure": {
"conditions": [ ],
"inputs": {
"body": null,
"host": {
"api": {
"runtimeUrl": "https://logic-apis-northcentralus.azure-apim.net/apim/sql"
},
"connection": {
"name": "<sql connection string>"
}
},
"method": "post",
"path": "/datasets/default/procedures/@{encodeURIComponent(encodeURIComponent(string('<stored-procedure-name>')))}"
},
"type": "apiconnection"
}
}
当我部署此模板时,逻辑应用已创建,但它抛出错误或 SQL 连接操作未显示在设计 View 中。我在这里做错了什么? arm目前支持调用SQL Stored Proc的Logic App吗?
最佳答案
这是 LogicApp ARM 模板 +“连接”资源的示例模板
https://blogs.msdn.microsoft.com/logicapps/2016/02/23/deploying-in-the-logic-apps-preview-refresh/
https://github.com/jeffhollan/logicapps-deployments/blob/master/ftp_to_blob.json
关于azure-resource-manager - 使用 ARM 模板/powershell 部署逻辑应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37242019/