Azure Logic Apps - ARM template to deploy filesystem API connection

六月ゝ 毕业季﹏ 提交于 2019-12-06 09:56:28

I was able to solve the issue by following instruction on blog

https://blogs.msdn.microsoft.com/logicapps/2016/02/23/deploying-in-the-logic-apps-preview-refresh/

Specially using armclient command line tool to retrieve the connection metadata https://github.com/projectkudu/ARMClient

{
    "apiVersion": "2016-06-01",
    "name": "filesystem",
    "type": "Microsoft.Web/connections",
    "location": "[resourceGroup().location]",
    "properties": {
      "api": {
        "id": "[concat(subscription().id,'/providers/Microsoft.Web/locations/centralus/managedApis/filesystem')]"
      },
      "displayName": "logicAppFile",
      "parameterValues": {
          "rootfolder": "c:\\",
          "authType": "windows",
          "username": "[parameters('username')]",
          "password": "[parameters('password')]",
          "gateway": {
            "name": "OnPremGateway",
            "id": "/subscriptions/-----/resourceGroups/-----/providers/Microsoft.Web/connectionGateways/OnPremGateway",
            "type": "Microsoft.Web/connectionGateways"
        }
      }
    },
  }

If your using logic app custom connector then you have to define those parameters with the same

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!