Steps for deploying Logic App Standard resource including the infrastructure and code using ARM template.

Nair, Veena Deepak 20 Reputation points
2023-04-04T14:59:07.51+00:00

Please let me know the steps for deploying Logic App Standard resource including the infrastructure and code using ARM template. I am aware that there is an article on it (below link) but could you please share the detailed steps to deploy standard logic app as there is not much information available for the standard tier logic app deployment https://learn.microsoft.com/en-us/azure/logic-apps/set-up-devops-deployment-single-tenant-azure-logic-apps?tabs=github

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Luis Arias 8,621 Reputation points Volunteer Moderator
    2023-11-15T21:59:59.08+00:00

    Hi @Nair, Veena Deepak ,

    First Let me help you with the step by step based on azure learning guides:

    1. I recommend you use bicep to define your infrastructure as code this is easy to understand than ARM. To be familiarized with bicep you can follow this first guied: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/quickstart-create-bicep-use-visual-studio-code?tabs=CLI

    Note: Here you will learn to create your main.bicep , where it will be defined your azure resource

    1. You can find the azure logic app resource definition to start building your code and customize according your requeriments : https://learn.microsoft.com/en-us/azure/templates/microsoft.logic/workflows?pivots=deployment-language-bicep

    Note: In this step you learn to customize your bicep file for an specific resource in this case logic apps. example file: main.bicep

    1. Deploy this bicep file a verify your resource created on azure: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/deploy-cli

    Here you learn how to deploy main.bicep in azure platform.

    Additionally you can follow this 3 steps to show case how to deploy a logic app on azure:

    1. Copy this code on file logicapps.bicep:
    resource logicApp 'Microsoft.Logic/workflows@2019-05-01' = {
      name: 'myLogicApp-demo'
      location: resourceGroup().location
      properties: {
        state: 'Enabled'
        definition: {
          '$schema': 'https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#'
          contentVersion: '1.0.0.0'
          triggers: {
            recurrence: {
              type: 'Recurrence'
              recurrence: {
                frequency: 'Day'
                interval: 1
              }
            }
          }
          actions: {
            HTTP_Get: {
              type: 'Http'
              inputs: {
                method: 'GET'
                uri: 'http://example.com'  // Replace with your HTTP endpoint
              }
            }
          }
        }
      }
    }
    
    
    1. Execute this azure cli to deploy in a existing resource group:
    az deployment group create resource-group <your-rg-name> template-file logicapps.bicep
    
    
    
    1. Verify the deployment in the resouce group

    User's image

    Finally with this 3 steps you have deployed logic apps single workflow that run each 24 hours and make a get to API

    User's image

    Cheers,

    Luis Arias


    If the information helped address your question, please Accept the answer.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.