question

KiddAlan-1052 avatar image
0 Votes"
KiddAlan-1052 asked KiddAlan-1052 answered

Sample Azure DevOps Pipeline for Single-Tenant LogicApp

I have built a DevOps pipeline for a multi-tenant consumption Logic App. I now need to build a pipeline for a single-tenant Logic App.

Can you please point me to a sample pipeline which is relatively simple?

azure-logic-appsfasttrack-azure
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

willvelida-MSFT avatar image
0 Votes"
willvelida-MSFT answered KiddAlan-1052 commented

Hi Alan,

Here is a sample for a single tenant logic app that you can deploy via Azure DevOps: https://github.com/Azure/logicapps/tree/master/azure-devops-sample

Here's a doc that has more details on that sample: https://docs.microsoft.com/en-us/azure/logic-apps/set-up-devops-deployment-single-tenant-azure-logic-apps?tabs=github

Hopefully that helps :)

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I did find this YAML in a link posted in the fast track.

https://docs.microsoft.com/en-us/azure/logic-apps/set-up-devops-deployment-single-tenant-azure-logic-apps?tabs=azure-devops

I'll investigate this.

  • task: AzureFunctionApp@1
    displayName: 'Deploy logic app workflows'
    inputs:
    azureSubscription: 'MyServiceConnection'
    appType: 'workflowapp'
    appName: 'MyLogicAppName'
    package: 'MyBuildArtifact.zip'
    deploymentMethod: 'zipDeploy'

1 Vote 1 ·

Thanks. I have found these before.

I ended up confused about single tenant and docker and wasn't able to connect the artefacts I need to get it working.

A simple pipeline file for a simple workflow would be ideal.

I would like to deploy a single-tenant with a workflow and 1 or 2 parameters.

hello world would be fine.

0 Votes 0 ·
KiddAlan-1052 avatar image
0 Votes"
KiddAlan-1052 answered

I got it working

 # Deploy Standard Logic App
    
 trigger:
 - master
    
 pool:
   vmImage: 'windows-latest'
    
 variables:
   buildPlatform: 'Any CPU'
   buildConfiguration: 'Release'
    
 jobs:
 - job: logic_app_build
   displayName: 'Build and publish logic app'
   steps:
   - task: CopyFiles@2
     displayName: 'Create project folder'
     inputs:
       SourceFolder: '$(System.DefaultWorkingDirectory)'
       Contents: |
         **
       TargetFolder: 'project_output'
    
   - task: ArchiveFiles@2
     displayName: 'Create project zip'
     inputs:
       rootFolderOrFile: '$(System.DefaultWorkingDirectory)/project_output'
       includeRootFolder: false
       archiveType: 'zip'
       archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
       replaceExistingArchive: true
    
   - task: AzureFunctionApp@1
     displayName: 'Deploy logic app workflows'
     inputs:
       azureSubscription: 'subscription1'
       appType: 'workflowapp'
       appName: 'vscode-logic-std'
       package: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
       deploymentMethod: 'zipDeploy'
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.