ARM templates for API Connections in Logic Apps

两盒软妹~` 提交于 2019-12-24 19:35:07

问题


Can anyone point me to ARM templates to build API Connections for use in Logic Apps?

Specifically after gmail, o365, and az table storage.

Targeting for use in Azure DevOps pipeline.


回答1:


If you want to create API connection for table storage you could refer to this SO thread.

For gmail and o365 we could create the API connection firstly from Azure Portal then we could get the corrosponding ARM template.

{
  "$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": {}
}

Note: I test it with gmail connection API, but there is a big issue that, we need to be authenticated

But I can't find a way to avoid that.




回答2:


I confirmed with the product group that with oauth connectors human intervention is always required, whether it being running the auth script or clicking into the portal. In my case, I moved to the SMTP connector since I'm just doing email. Bigger issue with trying to use other o365 services.



来源:https://stackoverflow.com/questions/54929861/arm-templates-for-api-connections-in-logic-apps

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