hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.52k stars 4.6k forks source link

Add workflow support to Logic App (Standard / Single Tenant) #13909

Open GregoryFrance opened 2 years ago

GregoryFrance commented 2 years ago

Community Note

Description

We should be able to add worflow item to Logic App (Standard / Single Tenant)

azurerm_logic_app_standard

Potential Terraform Configuration

resource "azurerm_resource_group" "example" {
  name     = "azure-functions-test-rg"
  location = "West Europe"
}

resource "azurerm_storage_account" "example" {
  name                     = "functionsapptestsa"
  resource_group_name      = azurerm_resource_group.example.name
  location                 = azurerm_resource_group.example.location
  account_tier             = "Standard"
  account_replication_type = "LRS"
}

resource "azurerm_app_service_plan" "example" {
  name                = "azure-functions-test-service-plan"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name

  sku {
    tier = "ElasticPremium"
    size = "EP1"
  }
}

resource "azurerm_logic_app_standard" "example" {
  name                       = "test-azure-functions"
  location                   = azurerm_resource_group.example.location
  resource_group_name        = azurerm_resource_group.example.name
  app_service_plan_id        = azurerm_app_service_plan.example.id
  storage_account_name       = azurerm_storage_account.example.name
  storage_account_access_key = azurerm_storage_account.example.primary_access_key
}

resource "azurerm_logic_app_workflow" "example" {
  name                = "workflow1"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  logic_app_standard_id = azurerm_logic_app_standard.example.id
}

References

azureiac commented 2 years ago

Is the standard logic app workflow available to use or still in development?

ManojSethuraman commented 9 months ago

is there an option like zipdeploy we have for function app resource to deploy the workflows in logic app standard?