【问题标题】:ARM templates for API Connections in Logic Apps用于逻辑应用中 API 连接的 ARM 模板
【发布时间】:2019-02-28 16:09:42
【问题描述】:

谁能指点我使用 ARM 模板来构建用于逻辑应用程序的 API 连接?

特别是在 gmail、o365 和 az 表存储之后。

针对在 Azure DevOps 管道中使用。

【问题讨论】:

    标签: azure-devops azure-resource-manager azure-logic-apps


    【解决方案1】:

    如果你想为表存储创建 API 连接,你可以参考这个SO thread

    对于 gmail 和 o365,我们可以先从 Azure Portal 创建 API 连接,然后我们可以获得相应的 ARM 模板。

    {
      "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
      "contentVersion": "1.0.0.0",
      "parameters": {},
      "variables": {},
      "resources": [
        {
          "type": "Microsoft.Web/connections",
          "name": "tomtestGmail",
          "apiVersion": "2016-06-01",
          "location": "centralus",
          "scale": null,
          "properties": {
            "displayName": "xxxx@gmail.com",
            "customParameterValues": {},
            "api": {
              "id": "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/managedApis/gmail"
            }
          },
          "dependsOn": []
        }
      ],
      "outputs": {}
    }
    

    注意:我用gmail连接API测试过,但是有一个大问题,我们需要认证

    但我找不到避免这种情况的方法。

    【讨论】:

      【解决方案2】:

      我向产品组确认,对于 oauth 连接器,无论是运行身份验证脚本还是单击门户,总是需要人工干预。就我而言,由于我只是在处理电子邮件,因此我使用了 SMTP 连接器。尝试使用其他 o365 服务的更大问题。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-10-23
        • 1970-01-01
        • 2021-11-04
        • 2021-02-02
        • 2022-09-28
        • 1970-01-01
        • 1970-01-01
        • 2018-08-16
        相关资源
        最近更新 更多