Microsoft.Web connections 2016-06-01

Bicep resource definition

The connections resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Web/connections resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Web/connections@2016-06-01' = {
  etag: 'string'
  location: 'string'
  name: 'string'
  properties: {
    api: {
      brandColor: 'string'
      description: 'string'
      displayName: 'string'
      iconUri: 'string'
      id: 'string'
      name: 'string'
      swagger: any(Azure.Bicep.Types.Concrete.AnyType)
      type: 'string'
    }
    changedTime: 'string'
    createdTime: 'string'
    customParameterValues: {
      {customized property}: 'string'
    }
    displayName: 'string'
    nonSecretParameterValues: {
      {customized property}: 'string'
    }
    parameterValues: {
      {customized property}: 'string'
    }
    statuses: [
      {
        error: {
          etag: 'string'
          location: 'string'
          properties: {
            code: 'string'
            message: 'string'
          }
          tags: {
            {customized property}: 'string'
          }
        }
        status: 'string'
        target: 'string'
      }
    ]
    testLinks: [
      {
        method: 'string'
        requestUri: 'string'
      }
    ]
  }
  tags: {
    {customized property}: 'string'
  }
}

Property values

ApiConnectionDefinitionProperties

Name Description Value
api ApiReference
changedTime Timestamp of last connection change string
createdTime Timestamp of the connection creation string
customParameterValues Dictionary of custom parameter values ApiConnectionDefinitionPropertiesCustomParameterValues
displayName Display name string
nonSecretParameterValues Dictionary of nonsecret parameter values ApiConnectionDefinitionPropertiesNonSecretParameterValues
parameterValues Dictionary of parameter values ApiConnectionDefinitionPropertiesParameterValues
statuses Status of the connection ConnectionStatusDefinition[]
testLinks Links to test the API connection ApiConnectionTestLink[]

ApiConnectionDefinitionPropertiesCustomParameterValues

Name Description Value

ApiConnectionDefinitionPropertiesNonSecretParameterValues

Name Description Value

ApiConnectionDefinitionPropertiesParameterValues

Name Description Value
Name Description Value
method HTTP Method string
requestUri Test link request URI string

ApiReference

Name Description Value
brandColor Brand color string
description The custom API description string
displayName The display name string
iconUri The icon URI string
id Resource reference id string
name The name of the API string
swagger The JSON representation of the swagger any
type Resource reference type string

ConnectionError

Name Description Value
etag Resource ETag string
location Resource location string
properties ConnectionErrorProperties
tags Resource tags TagsDictionary

ConnectionErrorProperties

Name Description Value
code Code of the status string
message Description of the status string

ConnectionStatusDefinition

Name Description Value
error Connection error ConnectionError
status The gateway status string
target Target of the error string

Microsoft.Web/connections

Name Description Value
etag Resource ETag string
location Resource location string
name The resource name string (required)
properties ApiConnectionDefinitionProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

TagsDictionary

Name Description Value

TagsDictionary

Name Description Value

Quickstart samples

The following quickstart samples deploy this resource type.

Bicep File Description
Azure Logic Apps - AS2 Send Receive Creates integration accounts for two partners, Contoso and Fabrikam, including the artifacts for partners and agreements. The template also creates logic apps between Fabrikam Sales and Contoso to demonstrate synchronous AS2 Send Receive. The template also creates logic apps between Fabrikam Finance and Contoso, which demonstrate asynchronous AS2 Send Receive.
Copy FTP files to Azure Blob logic app This template allows you to create a Logic app triggers on files in an FTP server and copies them to an Azure Blob container. You can add an additional triggers or actions to customize it to your needs.
Retrieve Azure Storage access keys in ARM template This template will create a Storage account, after which it will create a API connection by dynamically retrieving the primary key of the Storage account. The API connection is then used in a Logic App as a trigger polling for blob changes.

ARM template resource definition

The connections resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Web/connections resource, add the following JSON to your template.

{
  "type": "Microsoft.Web/connections",
  "apiVersion": "2016-06-01",
  "name": "string",
  "etag": "string",
  "location": "string",
  "properties": {
    "api": {
      "brandColor": "string",
      "description": "string",
      "displayName": "string",
      "iconUri": "string",
      "id": "string",
      "name": "string",
      "swagger": {},
      "type": "string"
    },
    "changedTime": "string",
    "createdTime": "string",
    "customParameterValues": {
      "{customized property}": "string"
    },
    "displayName": "string",
    "nonSecretParameterValues": {
      "{customized property}": "string"
    },
    "parameterValues": {
      "{customized property}": "string"
    },
    "statuses": [
      {
        "error": {
          "etag": "string",
          "location": "string",
          "properties": {
            "code": "string",
            "message": "string"
          },
          "tags": {
            "{customized property}": "string"
          }
        },
        "status": "string",
        "target": "string"
      }
    ],
    "testLinks": [
      {
        "method": "string",
        "requestUri": "string"
      }
    ]
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property values

ApiConnectionDefinitionProperties

Name Description Value
api ApiReference
changedTime Timestamp of last connection change string
createdTime Timestamp of the connection creation string
customParameterValues Dictionary of custom parameter values ApiConnectionDefinitionPropertiesCustomParameterValues
displayName Display name string
nonSecretParameterValues Dictionary of nonsecret parameter values ApiConnectionDefinitionPropertiesNonSecretParameterValues
parameterValues Dictionary of parameter values ApiConnectionDefinitionPropertiesParameterValues
statuses Status of the connection ConnectionStatusDefinition[]
testLinks Links to test the API connection ApiConnectionTestLink[]

ApiConnectionDefinitionPropertiesCustomParameterValues

Name Description Value

ApiConnectionDefinitionPropertiesNonSecretParameterValues

Name Description Value

ApiConnectionDefinitionPropertiesParameterValues

Name Description Value
Name Description Value
method HTTP Method string
requestUri Test link request URI string

ApiReference

Name Description Value
brandColor Brand color string
description The custom API description string
displayName The display name string
iconUri The icon URI string
id Resource reference id string
name The name of the API string
swagger The JSON representation of the swagger any
type Resource reference type string

ConnectionError

Name Description Value
etag Resource ETag string
location Resource location string
properties ConnectionErrorProperties
tags Resource tags TagsDictionary

ConnectionErrorProperties

Name Description Value
code Code of the status string
message Description of the status string

ConnectionStatusDefinition

Name Description Value
error Connection error ConnectionError
status The gateway status string
target Target of the error string

Microsoft.Web/connections

Name Description Value
apiVersion The api version '2016-06-01'
etag Resource ETag string
location Resource location string
name The resource name string (required)
properties ApiConnectionDefinitionProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.Web/connections'

TagsDictionary

Name Description Value

TagsDictionary

Name Description Value

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Alert to queue with Logic app

Deploy to Azure
This template allows you to create a Logic app that has a webhook. When the Logic app is triggered, it will add the payload you pass to an Azure Storage queue that you specify. You can add this webhook to an Azure Alert and then whenever the Alert fires, you'll get that item in the queue.
Alert to Slack with Logic app

Deploy to Azure
This template allows you to create a Logic app that has a webhook to be used from an Azure Alert. When the Alert is triggered, it will post a message to a slack channel that you specify. You need to have a slack account to use this template.
Alert to text message with Logic app

Deploy to Azure
This template allows you to create a Logic app that has a webhook to be used from an Azure Alert. When the Alert is triggered, it will send you a text message with the details of the alert. It uses the go.gl URL shortening service to include a link to the portal to see the resource.
Azure Logic Apps - AS2 Send Receive

Deploy to Azure
Creates integration accounts for two partners, Contoso and Fabrikam, including the artifacts for partners and agreements. The template also creates logic apps between Fabrikam Sales and Contoso to demonstrate synchronous AS2 Send Receive. The template also creates logic apps between Fabrikam Finance and Contoso, which demonstrate asynchronous AS2 Send Receive.
Azure Logic Apps - B2B Disaster Recovery replication

Deploy to Azure
Creates replication Logic Apps for AS2 MIC, generated and received X12 control numbers. Each Logic App's trigger points to a primary site integration account. Each Logic App's action points to a secondary site integration account.
Copy FTP files to Azure Blob logic app

Deploy to Azure
This template allows you to create a Logic app triggers on files in an FTP server and copies them to an Azure Blob container. You can add an additional triggers or actions to customize it to your needs.
Correlating messages over Logic Apps using Service Bus

Deploy to Azure
which shows how we can correlate messages over Logic Apps using Azure Service Bus
Logic App to email detailed backup reports

Deploy to Azure
Create a Logic App to send reports on backup instances, usage, jobs, policies, policy adherence, and optimization opportunities via email.
Logic App to email reports on backup and restore jobs

Deploy to Azure
Create a Logic App to send reports on your backup and restore jobs via email
Logic App to email reports on backup cost optimizmation

Deploy to Azure
This template deploys a Logic App that sends periodic reports on inactive backup resources, possible backup schedule optimizations and possible backup retention optimizations, to a specified set of email addresses.
Logic App to email reports on backup instances

Deploy to Azure
Create a Logic App to send reports on backup instances protected using Azure Backup via email
Logic App to email reports on backup policies

Deploy to Azure
Create a Logic App to send reports on your backup policies via email
Logic App to email reports on backup policy adherence

Deploy to Azure
Create a Logic App to send reports on backup policy adherence of your backup instances via email
Logic App to email reports on your Azure Backup billing

Deploy to Azure
This template deploys a Logic App that sends periodic reports on key backup billing parameters (protected instances and backup cloud storage consumed) at a billing-entity level, to a specified set of email addresses.
Logic App to email summary reports on backups

Deploy to Azure
Create a Logic App to send summary reports on your backups via email.
Retrieve Azure Storage access keys in ARM template

Deploy to Azure
This template will create a Storage account, after which it will create a API connection by dynamically retrieving the primary key of the Storage account. The API connection is then used in a Logic App as a trigger polling for blob changes.
Run a SQL stored procedure on a schedule via a logic app

Deploy to Azure
This template allows you to create a Logic App that will run a SQL stored procedure on schedule. Any arguments for the procedure can be put into the body section of the template.
Send email with Logic app

Deploy to Azure
This template allows you to create a Logic app that sends an email. You can add an additional triggers or actions to customize it to your needs.

Terraform (AzAPI provider) resource definition

The connections resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Web/connections resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Web/connections@2016-06-01"
  name = "string"
  etag = "string"
  location = "string"
  body = jsonencode({
    properties = {
      api = {
        brandColor = "string"
        description = "string"
        displayName = "string"
        iconUri = "string"
        id = "string"
        name = "string"
        swagger = ?
        type = "string"
      }
      changedTime = "string"
      createdTime = "string"
      customParameterValues = {
        {customized property} = "string"
      }
      displayName = "string"
      nonSecretParameterValues = {
        {customized property} = "string"
      }
      parameterValues = {
        {customized property} = "string"
      }
      statuses = [
        {
          error = {
            etag = "string"
            location = "string"
            properties = {
              code = "string"
              message = "string"
            }
            tags = {
              {customized property} = "string"
            }
          }
          status = "string"
          target = "string"
        }
      ]
      testLinks = [
        {
          method = "string"
          requestUri = "string"
        }
      ]
    }
  })
  tags = {
    {customized property} = "string"
  }
}

Property values

ApiConnectionDefinitionProperties

Name Description Value
api ApiReference
changedTime Timestamp of last connection change string
createdTime Timestamp of the connection creation string
customParameterValues Dictionary of custom parameter values ApiConnectionDefinitionPropertiesCustomParameterValues
displayName Display name string
nonSecretParameterValues Dictionary of nonsecret parameter values ApiConnectionDefinitionPropertiesNonSecretParameterValues
parameterValues Dictionary of parameter values ApiConnectionDefinitionPropertiesParameterValues
statuses Status of the connection ConnectionStatusDefinition[]
testLinks Links to test the API connection ApiConnectionTestLink[]

ApiConnectionDefinitionPropertiesCustomParameterValues

Name Description Value

ApiConnectionDefinitionPropertiesNonSecretParameterValues

Name Description Value

ApiConnectionDefinitionPropertiesParameterValues

Name Description Value
Name Description Value
method HTTP Method string
requestUri Test link request URI string

ApiReference

Name Description Value
brandColor Brand color string
description The custom API description string
displayName The display name string
iconUri The icon URI string
id Resource reference id string
name The name of the API string
swagger The JSON representation of the swagger any
type Resource reference type string

ConnectionError

Name Description Value
etag Resource ETag string
location Resource location string
properties ConnectionErrorProperties
tags Resource tags TagsDictionary

ConnectionErrorProperties

Name Description Value
code Code of the status string
message Description of the status string

ConnectionStatusDefinition

Name Description Value
error Connection error ConnectionError
status The gateway status string
target Target of the error string

Microsoft.Web/connections

Name Description Value
etag Resource ETag string
location Resource location string
name The resource name string (required)
properties ApiConnectionDefinitionProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.Web/connections@2016-06-01"

TagsDictionary

Name Description Value

TagsDictionary

Name Description Value