我已经在Azure中创建了一个逻辑应用程序,该逻辑应用程序可以在Azure本身中正常运行。因此,我首先在VS2017中重新创建了Logic App(已安装“ Visual Studio的Azure Logic Apps”扩展)。逻辑应用程序包含要从Azure Servicebus读取的触发器,并调用自定义逻辑应用程序连接器操作。此自定义连接器通过运行良好的Azure数据网关调用SOAP Web服务。
现在的问题是,当我尝试从VS2017部署它时,它在“输出”窗口中抱怨。我收到的消息是:
New-AzureRmResourceGroupDeployment : 13:41:34 - Resource MICROSOFT.WEB/CONNECTIONS 'MyCustomConnector' failed with message '{"error": {"code": "ConnectionGatewayFailure","message": "Establishing connection with the service failed with code 'BadRequest'."}}'
我的逻辑应用程序运行良好,因为我在本地应用程序中收到了SOAP请求。
到目前为止,我已经尝试过:
但是直到现在,都没有成功。所以希望你们中的一些人可以帮助我。
编辑:这是我的ARM模板,我重命名了一些东西,希望不要过多。
{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "connections_servicebus_name": { "defaultValue": "servicebus", "type": "String" }, "customApis_MyCustomConnector_name": { "defaultValue": "My-Custom-Connector", "type": "String" }, "connections_MyCustomConnector_name": { "defaultValue": "My-Custom-Connector", "type": "String" }, "workflows_MyLogicApp_name": { "defaultValue": "My-LogicApp", "type": "String" }, "workflows_MyLogicApp_id": { "defaultValue": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Logic/integrationAccounts/My-Integration-Account", "type": "String" } }, "variables": {}, "resources": [ { "comments": "Generalized from resource: '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup-B/providers/Microsoft.Logic/workflows/My-LogicApp'.", "type": "Microsoft.Logic/workflows", "name": "[parameters('workflows_MyLogicApp_name')]", "apiVersion": "2017-07-01", "location": "westeurope", "tags": {}, "scale": null, "properties": { "state": "Enabled", "integrationAccount": { "id": "[parameters('workflows_MyLogicApp_id')]" }, "definition": { "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", "contentVersion": "1.0.0.0", "parameters": { "$connections": { "defaultValue": {}, "type": "Object" } }, "triggers": { }, "actions": { }, "outputs": {} }, "parameters": { "$connections": { "value": { "My-Custom-Connector": { "connectionId": "[resourceId('Microsoft.Web/connections', parameters('connections_MyCustomConnector_name'))]", "connectionName": "My-Custom-Connector", "id": "[resourceId('Microsoft.Web/customApis', parameters('customApis_MyCustomConnector_name'))]" }, "servicebus": { "connectionId": "[resourceId('Microsoft.Web/connections', parameters('connections_servicebus_name'))]", "connectionName": "servicebus", "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/locations/westeurope/managedApis/servicebus" } } } } }, "dependsOn": [ "[resourceId('Microsoft.Web/connections', parameters('connections_MyCustomConnector_name'))]", "[resourceId('Microsoft.Web/customApis', parameters('customApis_MyCustomConnector_name'))]", "[resourceId('Microsoft.Web/connections', parameters('connections_servicebus_name'))]" ] }, { "comments": "Generalized from resource: '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup-B/providers/Microsoft.Web/connections/My-Custom-Connector'.", "type": "Microsoft.Web/connections", "name": "[parameters('connections_MyCustomConnector_name')]", "apiVersion": "2016-06-01", "location": "westeurope", "scale": null, "properties": { "displayName": "LogicAppsCustomConnector-Connection", "customParameterValues": {}, "api": { "id": "[resourceId('Microsoft.Web/customApis', parameters('customApis_MyCustomConnector_name'))]" } }, "dependsOn": [ "[resourceId('Microsoft.Web/customApis', parameters('customApis_MyCustomConnector_name'))]" ] }, { "comments": "Generalized from resource: '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup-B/providers/Microsoft.Web/connections/servicebus'.", "type": "Microsoft.Web/connections", "name": "[parameters('connections_servicebus_name')]", "apiVersion": "2016-06-01", "location": "westeurope", "scale": null, "properties": { "displayName": "worker_outbound", "customParameterValues": {}, "api": { "id": "[concat('/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/locations/westeurope/managedApis/', parameters('connections_servicebus_name'))]" } }, "dependsOn": [] }, { "comments": "Generalized from resource: '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup-B/providers/Microsoft.Web/customApis/My-Custom-Connector'.", "type": "Microsoft.Web/customApis", "name": "[parameters('customApis_MyCustomConnector_name')]", "apiVersion": "2016-06-01", "location": "westeurope", "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" ] } } } }, "brandColor": "#ffffff", "description": "Calls My SOAP test webservice.", "displayName": "[parameters('customApis_MyCustomConnector_name')]", "iconUri": }, "dependsOn": [] } ] }