0

Say that I have a logic app standard that have a workflow that contains something like:

enter image description here

I have the following structure for my files:

|   .gitignore
|   azure-pipelines.yml
|   
+---Integrations
|   +---Artifacts
|   |   +---Maps
|   |   |       myMap.xslt
|   |   |       
|   |   \---Schemas
|   +---LogicApp
|   |       LogicApp-template.json
|   |       
|   +---RequiredIntegerations
|   |       storage-template.json
|   |       
|   \---Workflows
|       |   azure.parameters.json
|       |   connections.json
|       |   host.json
|       |   parameters.json
|       |      
|       \---testXsltWorkflow
|               workflow.json
|               
\---releasePipeline
   |   commit.yml
   |   release.yml
   |   requiredDeployment.yml
   |   
   +---commitJobs
   |       integrations.yml
   |       
   \---releaseJobs
           deployIntegrations.yml

I have tried to deploy the map folder in the same way I deploy the workflows inside the yaml file (zip deploy):

I build the map Artifact like this:

# Build Maps Artifacts
- job: Build_Maps
    displayName: Build_Maps
    dependsOn: Build_LA_Artifact

    pool:
      vmImage: 'ubuntu-18.04'

    # Copy the files to project_output folders
    steps:
    - task: CopyFiles@2
      displayName: 'Create project folder'
      inputs:
        SourceFolder: 'Integrations/'
        Contents: |
          Artifacts/**
        TargetFolder: 'project_output'

    ## convert the files in project_output/Artifacts folder to a zip files 
    ## (i.e. compress the worklflow files into a zip file) and save it in artifiact folder
    - task: ArchiveFiles@2   
      displayName: 'Create project zip'
      inputs:
        rootFolderOrFile: '$(System.DefaultWorkingDirectory)/project_output/Artifacts'
        includeRootFolder: false
        archiveType: 'zip'
        archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
        replaceExistingArchive: true

    ## Publish/deploy the maps inside the LA.
    - task: PublishPipelineArtifact@1
      displayName: 'Publish project zip artifact'
      inputs:
        targetPath: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
        artifact: 'mapsArtifact' 
        publishLocation: 'pipeline'

And I deploy the artifacts like this:

# deploy maps
- deployment: DeployMapsArtifact
    dependsOn: DeployLogicAppArtifact
    
    pool:
      vmImage: 'ubuntu-18.04'
    environment: "${{parameters.environment}}"
    strategy:
      runOnce:
        deploy:
          steps:
            - download: current
              artifact: 'mapsArtifact'             
            - task: AzureFunctionApp@1
              displayName: 'Deploy logic app maps'
              inputs:
                azureSubscription: "${{ parameters.connectedServiceName }}"
                appType: 'functionApp'
                appName:  "${{parameters.LA_name}}-${{ parameters.environment }}" 
                package: '$(Pipeline.Workspace)/mapsArtifact/*.zip'
                deploymentMethod: 'zipDeploy'

The deployment succeed but I still can't see this my XSLTmap inside the Maps tab in my standard logic App.

ibda
  • 376
  • 3
  • 15
  • Have you added your Integration Account to your logic app workflow settings? ![enter image description here](https://i.imgur.com/GVOgLOa.png) – SwethaKandikonda Sep 17 '21 at 01:24
  • @SwethaKandikonda-MT The option 'workflow settings' do not exist in the **STANDARD** logic app. I can find in the consumption logic app and not in the standard one – ibda Sep 17 '21 at 06:49
  • It might be issue with the filters provided in task: CopyFiles@2. Can you please try including root i.e.. / instead of ``` inputs: SourceFolder: 'Integrations/' ``` – SwethaKandikonda Sep 23 '21 at 08:26

0 Answers0