Blog Post

Azure Integration Services Blog
2 MIN READ

Deploy Logic App Standard with Application Routing Feature Based on Terraform and Azure Pipeline

Serena_Li's avatar
Serena_Li
Icon for Microsoft rankMicrosoft
Feb 11, 2025

Due to Terraform's cross-cloud compatibility, automation, and efficient execution, among many other advantages, more and more customers use it to deploy integration solutions based on Azure Logic App standard.

However, despite the extensive contributions from the community and individual contributors providing Terraform templates and supporting VNET integration solutions for Logic App standards, there are still very few terraform templates covering the "Application routing" and "Configuration routing" settings: 

 

This article shared a mature plan to deploy logic app standard then set the mentioned routing features automatically. It's based on Terraform template and Azure DevOps Pipeline. 

Code Reference:

https://github.com/serenaliqing/LAStandardTerraformDeployment/tree/main/Terraform-Deployment-Demo

About Terraform Template: 

Please kindly find the the template in directory Terraform/LAStandard.tf,  it includes the terraform definitions for logic app standard, the backend storage account, application insights, virtual network and VNET integration settings. 

About VNET Routing Configuration

Because there is no terraform examples available for VNET routing, we add VNET Settings by invoking "Patch" request to ARM RESTful API endpoint for interacting with logic app standard site: 

https://management.azure.com/subscriptions/<Your subscription id>/resourceGroups/$(deployRG)/providers/Microsoft.Web/sites/$(deployLA)?api-version=2022-03-01

We figured out the required request body in network trace as the following format: 

{
      "properties": {
        "vnetContentShareEnabled": false,
        "vnetImagePullEnabled": true,
        "vnetRouteAllEnabled": false,
        "vnetBackupRestoreEnabled": false
    }
}

Please find the YAML file in TerraformPipeline/logicappstandard-terraform.yml. Within the Yaml file , the "AzureCLI@2" task is used to send the request by Azure CLI command. 

AzurePipeline--AzureCLI@2 task to send the patch request.

Special Tips:

To use the terraform task during Azure pipeline run, it's required to install terraform extension (which you can find in the following link): 

https://marketplace.visualstudio.com/items?itemName=ms-devlabs.custom-terraform-tasks

Terraform tasks: 

Reference:

Deploy Logic App Standard with Terraform and Azure DevOps pipelines

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service

https://azure.microsoft.com/en-us/products/devops/pipelines

 

Updated Feb 11, 2025
Version 1.0
No CommentsBe the first to comment