ARM Template for API connections - O365 with Autherization

Contributor

Hi All,

 

I am Trying to api connections for O365, I am trying to add the credentials to authorize the connections for this api. 

 

How to include credentials details in the template/para

 

{

  "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2019-08-01/workflowdefinition....",

  "contentVersion": "1.0.0.0",

  "parameters": {

    "apiconname": {

      "type": "Array"

    }

  },

  "variables": {},

  "resources": [

    {

      "copy": {

        "name": "apiconname",

        "count": "[length(parameters('apiconname'))]"

      },

      "type": "Microsoft.Web/connections",

      "apiVersion": "2016-06-01",

      "name": "[concat(parameters('apiconname')[copyIndex()].properties.apiname)]",

      "location": "eastus",

      "kind": "V1",

      "properties": {

        "displayName": "[concat(parameters('apiconname')[copyIndex()].properties.displayName)]",

        "customParameterValues": {},

        "ParameterValues": {},

        "api": {

          "id": "[concat(subscription().id,'/providers/Microsoft.Web/locations/', resourceGroup().location, '/managedApis/', parameters('apiconname')[copyIndex()].properties.api)]"

        }

      }

    }

  ]

}

 

 

Para File:

 

{

  "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2019-08-01/workflowdefinition....",

  "contentVersion": "1.0.0.0",

  "parameters": {

    "apiconname": {

      "value": [

        {

          "properties": {

            "apiname": "Test1",

            "displayName": "D1",

            "api": "office365"

          }

        },

        {

          "properties": {

            "apiname": "Test2",

            "displayName": "D2",

            "api": "office365"

          }

        }

      ]

    }

  }

}

 

1 Reply

hello , Anyone got a solution for this issue ?