0

I can deploy logic App standard using terraform however i am unable to deploy or import the workflows inside logic App standard .. any help would be greatly appreciated

Thanks

  • 1
    What do you mean by you are unable ? could you please share with us what you have tried so far ? – Thomas Apr 14 '22 at 08:41

1 Answers1

0

I can deploy logic App standard using terraform however i am unable to deploy or import the workflows inside logic App standard

If you are facing issues while deploying your workflow, One of the workaround that you can try is to write an ARM template for the workflow and deploy ARM template to configure the workflow in the logic app.

// Create an instance of logic app and configure the tags
resource "azurerm_logic_app_workflow" "logicapp" {
  location            = "westeurope"
  resource_group_name = var.shared_env.rg.name
  tags                = var.shared_env.tags
}

// Deploy the ARM template to configure the workflow in the Logic App
data "template_file" "workflow" {
  template = file(local.arm_file_path)
}

// Deploy the ARM template workflow
resource "azurerm_template_deployment" "workflow" {
  depends_on = [azurerm_logic_app_workflow.logicapp]

  resource_group_name = var.shared_env.rg.name
  parameters = merge({
    "workflowName" = var.workflow_name,
    "location"     = "westeurope"
  }, var.parameters)

  template_body = data.template_file.workflow.template
}

If you are trying to deploy actions from terraform, Here is an example that you can refer to.

REFERENCES:

  1. azurerm_logic_app_standard
  2. Deploying a LogicApp with Terraform
SwethaKandikonda
  • 7,513
  • 2
  • 4
  • 18
  • Thanks @SwethaKandikonda-MT yes it seems workflow/code is out of scope of TF and as you suggested we need to using other coding to get the workflow and code deployed -- i am worried about using ARM templates within TF other have suggested using AZ CLI within a pipeline to build the workflow/code – Michael Rizk Apr 20 '22 at 04:08