Azure Logic Apps - 用于部署文件系统API连接的ARM模板

JJY*_*JJY 2 azure-resource-manager azure-logic-apps

我正在尝试使用ARM模板部署文件系统API连接.我找不到此连接的parametersValue架构,因此尝试命名Azure门户上显示的参数

编辑在Azure门户1上拍摄的API连接屏幕

{ "apiVersion": "2016-06-01", "name": "filesystem", "type": "Microsoft.Web/connections", "location": "[resourceGroup().location]", "properties": { "api": { "id": "[concat(subscription().id,'/providers/Microsoft.Web/locations/westus/managedApis/filesystem')]" }, "parameterValues": { "displayName": "FileSyetem", "rootFolder": "[parameters('rootFolder')]", "authenticationType":"Windows", "username": "[parameters('username')]", "password": "[parameters('password')]" } }

但是,由于错误的parameterValue名称displayName和authenticationType,部署失败

以下是部署日志中的错误 - 错误请求

输入参数无效.详细信息请参见详细信息.详细信息:errorCode:ParameterNotDefined.消息:连接上不允许参数'displayName',因为在注册API时未将其定义为连接参数...

有谁知道文件系统连接的正确json架构?我在https://resources.azure.com上找不到它.

JJY*_*JJY 7

我能够按照博客上的说明解决问题

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

特别使用armclient命令行工具检索连接元数据 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"
        }
      }
    },
  }
Run Code Online (Sandbox Code Playgroud)