Azure Logic App Workflow

This page shows how to write Terraform and Azure Resource Manager for Logic App Workflow and write them securely.

azurerm_logic_app_workflow (Terraform)

The Workflow in Logic App can be configured in Terraform with the resource name azurerm_logic_app_workflow. The following sections describe 10 examples of how to use the resource and its parameters.

Example Usage from GitHub

lapp.tf#L11
resource "azurerm_logic_app_workflow" "example" {
    name = "workflow1"
    location = azurerm_resource_group.example.location
    resource_group_name = azurerm_resource_group.example.name
}
LogicApp.tf#L8
resource "azurerm_logic_app_workflow" "MyLogicapp" {
  name                = "MyLogicapp"
  location            = azurerm_resource_group.MyTest-RG.location
  resource_group_name = azurerm_resource_group.MyTest-RG.name
}
main.tf#L1
resource "azurerm_logic_app_workflow" "logic_app" {
  name                    = var.logic_app_name
  location                = var.resource_group_location
  resource_group_name     = var.resource_group_name
resource.tf#L1
resource "azurerm_logic_app_workflow" "la" {
  name                = var.res_la_name
  location            = var.res_location
  resource_group_name = var.res_la_rg_name
logicapp.tf#L16
resource "azurerm_logic_app_workflow" "example" {
  name                = "testarmtemplate"
  location            = "eastus2"
  resource_group_name = "practice_rg"
  parameters = {
    "connections_azureeventgrid_externalid" = "/subscriptions/9ba3bb49-d69e-4f57-a11f-bf0a022fbd21/resourceGroups/practice_rg/providers/Microsoft.Web/connections/azureeventgrid"
AzureLogicApp.tf#L8
resource "azurerm_logic_app_workflow" "cloudquickpocslogicapp" {
  name                = "cloudquickpoclogicapp1"
  location            = azurerm_resource_group.myrgcloudquickpocs.location
  resource_group_name = azurerm_resource_group.myrgcloudquickpocs.name
}

logicapp.tf#L10
resource "azurerm_logic_app_workflow" "example" {
  name                = "workflow1"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
main.tf#L25
resource "azurerm_logic_app_workflow" "test" {
  for_each = var.networks
  name                = each.key
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
AzureLogicApp.tf#L8
resource "azurerm_logic_app_workflow" "cloudquickpocslogicapp" {
  name                = "cloudquickpoclogicapp1"
  location            = azurerm_resource_group.myrgcloudquickpocs.location
  resource_group_name = azurerm_resource_group.myrgcloudquickpocs.name
}

AzureLogicApp.tf#L8
resource "azurerm_logic_app_workflow" "cloudquickpocslogicapp" {
  name                = "cloudquickpoclogicapp1"
  location            = azurerm_resource_group.myrgcloudquickpocs.location
  resource_group_name = azurerm_resource_group.myrgcloudquickpocs.name
}

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages a Logic App Workflow.

Microsoft.Logic/workflows (Azure Resource Manager)

The workflows in Microsoft.Logic can be configured in Azure Resource Manager with the resource name Microsoft.Logic/workflows. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

Azure_Logic_Apps.json#L1515
          "values" : [ "Microsoft.Logic/workflows" ]
        }, {
          "not" : false,
          "property" : "primary_aggregation_type",
          "values" : [ "true" ]
        } ],
Azure_Logic_Apps.json#L1515
          "values" : [ "Microsoft.Logic/workflows" ]
        }, {
          "not" : false,
          "property" : "primary_aggregation_type",
          "values" : [ "true" ]
        } ],
Microsoft.Logic.tests.json#L7
        "type": "Microsoft.Logic/workflows",
        "apiVersion": "2016-06-01",
        "name": "name",
        "properties": {}
      }
    },
ceduleur.json#L18
         "type": "Microsoft.Logic/workflows",
         "apiVersion": "2017-07-01",
         "name": "[concat('Planif-CalculMassif-', parameters('HeliosEnvironnementName'), '-al')]",
         "location": "[resourceGroup().location]",
         "tags": {
            "displayName": "Planif_CalculMassif"
Page_Azure_Logic_Apps.json#L153
        "propertyValue" : "Microsoft.Logic/workflows",
        "query" : "resource_type:\"Microsoft.Logic/workflows\"",
        "type" : "property",
        "value" : "Microsoft.Logic/workflows"
      }, {
        "NOT" : false,
Page_Azure_Logic_Apps.json#L153
        "propertyValue" : "Microsoft.Logic/workflows",
        "query" : "resource_type:\"Microsoft.Logic/workflows\"",
        "type" : "property",
        "value" : "Microsoft.Logic/workflows"
      }, {
        "NOT" : false,
LogicApp.json#L92
      "type": "Microsoft.Logic/workflows",
      "location": "[parameters('logicAppLocation')]",
      "apiVersion": "2016-06-01",
      "dependsOn": [
        "[resourceId('Microsoft.Web/connections', parameters('outlook_1_Connection_Name'))]",
        "[resourceId('Microsoft.Web/connections', parameters('telesignsms_1_Connection_Name'))]"

Parameters

  • type required - string
  • apiVersion required - string
  • id optional - string

    The resource id.

  • name optional - string

    Gets the resource name.

  • location optional - string

    The resource location.

  • tags optional - string

    The resource tags.

  • properties required
      • state optional - string

        The state.

      • integrationAccount optional
          • id optional - string

            The resource id.

      • parameters optional - undefined

        The parameters.

Frequently asked questions

What is Azure Logic App Workflow?

Azure Logic App Workflow is a resource for Logic App of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Logic App Workflow?

For Terraform, the farrukh90/azure-terraform, paweadi/My-Terraform-Azure and prashant101386/devops source code examples are useful. See the Terraform Example section for further details.

For Azure Resource Manager, the signalfx/content-discovery-experimental, signalfx/content-discovery-staging and Azure/autorest.azureresourceschema source code examples are useful. See the Azure Resource Manager Example section for further details.