Azure DevOps Pipeline run using Logic App Create Pipeline Run Action

Aditya Singh 160 Reputation points
2023-06-20T19:37:34.65+00:00

How to run an Azure DevOps Pipeline(Main Branch) using Logic Apps : Create Pipeline Run Action?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

2 answers

Sort by: Most helpful
  1. Sina Salam 26,666 Reputation points Volunteer Moderator
    2023-06-21T11:13:33.8566667+00:00

    @Aditya Singh

    Thank you for letting me know for given more explanation.

    You simply need to use Azure Data Factory in Azure DevOps pipeline. You can follow the steps below:

    • From the Azure Repos, select the repo that contains the Data Factory code.

    Prior to this you must have:

    • Set up your code repository in Azure Data Factory:
    • In Azure Data Factory, go to Author & Monitor. Select Set up code repository and then connect your repo.
      • Repository type: Azure DevOps Git;
      • Azure DevOps organization: Your active account;
      • Project name: Your Azure DevOps data pipeline project.
    • Import the data pipeline solution.
    • Add pipeline variables.

    Select Start Pipeline as your build pipeline type.

    Check the default YAML code, you might need to replace and modify where necessary (if not an experiment) CHECK that everything is correct similar to the below code:

    trigger: - master  pool:   vmImage: 'windows-latest'  steps: - task: AzurePowerShell@5   inputs:     azureSubscription: 'Your subscription'     ScriptType: 'FilePath'     ScriptPath: '$(System.DefaultWorkingDirectory)/adf_publish.ps1'     ScriptArguments: '-ResourceGroupName $(ResourceGroupName) -DataFactoryName $(DataFactoryName) -Region $(Region) -ArmTemplateFile $(System.DefaultWorkingDirectory)/arm_template.json -ParameterFile $(System.DefaultWorkingDirectory)/arm_template.parameters.json'     azurePowerShellVersion: 'LatestVersion'
    
    • You can then save your code and move on.
    • Upload data to your storage container.
    • Set up Key Vault.

    However, I found many resources and link for some out-of-box YouTube, check it out from the followings:

    Hope this is helpful! Kindly let us know if this is useful, you can ask for more if there is a need.

    Good Success,

    Sina

    1 person found this answer helpful.

  2. Saurabh Sharma 23,866 Reputation points Microsoft Employee Moderator
    2023-06-26T21:33:16.29+00:00

    Hi Aditya Singh,

    The Data Factory pipeline dropdown box shows ONLY the list of published (live mode/adf_publish branch) pipelines of Azure Data factory. You won't be provided with a dropdown to select the Git branch and thus you are seeing only dropdown to select the pipelines only. User's image

    If you have checked-in your code to main branch, then please use the publish button at the top on ADF portal to publish the latest changes of main branch to the adf_publish(live) branch. Please refer to the below screenshot -

    User's image

    Once you press the publish button, then you will be presented with the latest changes which are getting published to ADF.

    User's image

    Once you are done with the publishing, you can verify your pipeline by going to adf_publish branch by selecting "switch to live mode" from branch dropdown of your data factory.OUser's image

    You should be then able to see the respective pipeline in Logic Apps ADF connector. Please let me know if you have any other questions.

    Thanks

    Saurabh


    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


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.