I have a standard single-tenant logic app which deploys correctly from VSCode to Azure.
I am trying to create a pipeline to deploy it from Azure DevOps using a zip deploy.
This pipeline runs successfully but there are no workflows in the logic app after it runs.
# Deploy Standard Logic App
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- script: cd
- script: dir
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
includeRootFolder: true
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'
When I look at the number of files and folders it has zipped it is way too high. I think it is zipping the wrong directory.
Found 1 files
Archiving file: s
D:\a\_tasks\ArchiveFiles_d8b84976-e99a-4b86-b885-4849694435b0\2.201.1\7zip\7z.exe a -tzip -mx=5 D:\a\1\a\118.zip @D:\a\_temp\bvf4hc6qzk8
7-Zip 19.00 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21
Scanning the drive:
68 folders, 91 files, 52766 bytes (52 KiB)
Creating archive: D:\a\1\a\118.zip
Add new data to archive: 68 folders, 91 files, 52766 bytes (52 KiB)
Files read from disk: 91
Archive size: 59142 bytes (58 KiB)
Everything is Ok
Finishing: ArchiveFiles
Can you please advise what needs to be corrected in the YAML pipeline?
Thanks