【问题标题】:ARM Template for Azure Custom Connector using On-Premises Data Gateway使用本地数据网关的 Azure 自定义连接器的 ARM 模板
【发布时间】:2018-06-26 20:52:18
【问题描述】:

我正在尝试为需要启用本地数据网关的自定义连接器制作 ARM 模板。除了最后一个要求外,我什么都做对了,因为我创建了一个完全配置的自定义连接器,除了使用本地数据网关的复选标记未激活。

知道我需要添加更改以完成此设置/元素吗?

这是我到现在为止的模板:

{
    "type": "Microsoft.Web/customApis",
    "name": "[parameters('Connection_Name')]",
    "apiVersion": "2016-06-01",
    "location": "centralus",
    "scale": null,
    "properties": {
        "connectionParameters": {
            "authType": {
                "type": "string",
                "allowedValues": [
                    {
                        "value": "none"
                    }
                ],
                "uiDefinition": {
                    "displayName": "Authentication Type",
                    "description": "Authentication type to connect to your API",
                    "tooltip": "Authentication type to connect to your API",
                    "constraints": {
                        "tabIndex": 1,
                        "required": "true",
                        "allowedValues": [
                            {
                                "text": "none",
                                "value": "anonymous"
                            }
                        ],
                        "capability": [
                            "gateway"
                        ]
                    }
                }
            },
            "gateway": {
                "type": "gatewaySetting",
                "gatewaySettings": {
                    "dataSourceType": "CustomConnector",
                    "connectionDetails": []
                },
                "uiDefinition": {
                    "constraints": {
                        "tabIndex": 4,
                        "required": "true",
                        "capability": [
                            "gateway"
                        ]
                    }
                }
            }
        },
        "backendService": {
          "serviceUrl": "[parameters('ServiceUrl')]"
        },
        "apiType": "Soap",
        "wsdlDefinition": {
          "importMethod": "SoapPassThrough"
        },          
        "swagger": {
          "swagger": "2.0",
          "info": {
            "title": "SOAP pass-through",
            "description": "Custom Connector for SOAP Operation",
            "version": "1.0"
          },
          "host": "xxxxxxxxxxxxx",
          "basePath": "/xxxxxxxx/xxxxxxxxxx",
          "consumes": [],
          "produces": [],
          "paths": {
            "/": {
              "post": {
                "responses": {
                  "default": {
                    "description": "default",
                    "schema": {
                      "type": "string",
                      "title": "",
                      "x-ms-visibility": "important"
                    },
                    "headers": {
                      "Content-Type": {
                        "description": "Content-Type",
                        "type": "string"
                      }
                    }
                  }
                },
                "summary": "GetOrigins",
                "description": "GetOrigins",
                "operationId": "GetOrigins",
                "parameters": [
                  {
                    "name": "Content-Type",
                    "in": "header",
                    "required": false,
                    "type": "string"
                  },
                  {
                    "name": "body",
                    "in": "body",
                    "required": false,
                    "schema": {
                      "type": "string"
                    }
                  }
                ]
              }
            }
          },
          "definitions": {},
          "parameters": {},
          "responses": {},
          "securityDefinitions": {},
          "security": [],
          "tags": [],
          "schemes": [
            "http"
          ]
        },          
        "description": "[concat('Custom Connector for SOAP', parameters('Connection_Name'),' Operation')]",
        "displayName": "[parameters('Connection_Name')]",
        "iconUri": "/Content/retail/assets/default-connection-icon.6296199fc1d74aa45ca68e1253762025.2.svg"
    },      
    "dependsOn": []
}

【问题讨论】:

    标签: azure azure-logic-apps arm-template


    【解决方案1】:

    要启用“本地数据网关”选项,您需要将网关添加到功能数组,如下所示:

    "properties" {        
        "capabilities": [
            "gateway"
        ],
    
    }
    

    【讨论】:

    • 我现在正在开发一个客户连接器 ARM 模板,可以确认此解决方案有效,应该标记为答案。
    【解决方案2】:

    本地数据网关选项不适用于 ARM 模板,您必须安装模板并从 Azure 门户手动添加复选框。

    谢谢。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-16
      • 1970-01-01
      相关资源
      最近更新 更多