I would like to deploy the respective workflows of the logicapps created in the development environment to the production logicapps using devops, is this possible?

NishimuraChinatsu-9854 756 Reputation points
2023-06-30T07:10:11.17+00:00

I would like to deploy the respective workflows of the logicapps created in the development environment to the production logicapps using devops, is this possible?

If possible, please give me a simple way to do this.

I have now set up the project and created a repo in devops, and in logicapps I have connected in the deployment center, but I am not sure where to go from there, so I would appreciate it if you could let me know.

Thank you in advance.

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

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,326 Reputation points Microsoft Employee Moderator
    2023-07-05T19:37:44.4866667+00:00

    Make sure you have the following extension installed on VS Code as I think it would prove help. Make sure your project is structured as follows. When you use the extension to observe your development environment, you'll notice the host.json, connections.json and workflow.json under folder with a corresponding workflow name.

    You've stated that you've already configured deployment center with your Azure DevOps repo, so assuming your project has the above structure, need to create a build task that will deploy the zip file to the logic app.

    - task: ArchiveFiles@2
      displayName: "Archive files"
      inputs:
        rootFolderOrFile: "$(System.DefaultWorkingDirectory)/publish_output"
        includeRootFolder: false
        archiveFile: "$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip"
    - task: PublishBuildArtifacts@1
      inputs:
        PathtoPublish: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip'
        artifactName: 'drop'
    - task: AzureFunctionApp@1
      displayName: 'Deploy logic app workflows'
      inputs:
         azureSubscription: 'MyServiceConnection'
         appType: 'functionAppLinux' ## Default: functionApp 
         appName: 'MyLogicAppName'
         package: $(System.ArtifactsDirectory)/**/*.zip
         deploymentMethod: 'zipDeploy'
    

Your answer

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