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?
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?
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 :)
I did find this YAML in a link posted in the fast track.
I'll investigate this.
task: AzureFunctionApp@1
displayName: 'Deploy logic app workflows'
inputs:
azureSubscription: 'MyServiceConnection'
appType: 'workflowapp'
appName: 'MyLogicAppName'
package: 'MyBuildArtifact.zip'
deploymentMethod: 'zipDeploy'
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.
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'
18 people are following this question.