Arm template

Vineet S 1,390 Reputation points
2024-11-22T01:55:31.3233333+00:00

Hi how to set up this build-and-deploy-dev pipeline using arm template and artifact.. Pls help with screenshot

Community Center | Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Nandan Hegde 36,151 Reputation points MVP Volunteer Moderator
    2024-11-22T03:20:12.1066667+00:00

    Plz refer these 2 MSFT docs:

    https://learn.microsoft.com/en-us/azure/data-factory/continuous-integration-delivery-improvements#create-an-azure-pipeline

    https://learn.microsoft.com/en-us/azure/data-factory/continuous-integration-delivery-automate-azure-pipelines#set-up-an-azure-pipelines-release

    They provide step by steps details for the same with screenshots/images.

    Below is AI content : (summarzied version of the above 2 Docs)

    for images, plz refer docs

    To set up a build-and-deploy pipeline using an ARM template and artifacts in Azure Data Factory, follow these steps:

    1. Create a Pipeline in Azure DevOps:
      • Open your Azure DevOps project and navigate to Pipelines.
        • Select "New Pipeline" and choose the repository where your Data Factory resources are stored.
        1. Define the YAML Pipeline:
          • Use a YAML file to define your pipeline. This file should include steps to validate your code and export the ARM template into a build artifact.
            • Ensure your YAML file includes the necessary scripts and dependencies.
            1. Set Up Release Pipeline:
              • In Azure DevOps, go to Pipelines > Releases and select "New Pipeline".
                • Choose the "Empty job" template.
                  • In the stage name, enter the name of your environment.
                  1. Add Artifacts:
                    • Select "Add artifact" and choose the Git repository configured with your Data Factory.
                      • Set the default branch to the publish branch (usually adf_publish).
                      1. Add ARM Template Deployment Task:
                        • In the stage view, select "View stage tasks" and add an Azure Resource Manager Deployment task.
                          • Configure the task with the appropriate subscription, resource group, and location.
                            • Specify the ARM template file (ARMTemplateForFactory.json) from your publish branch.
                            1. Configure Template Parameters:
                              • Choose the parameters file (ARMTemplateParametersForFactory.json) and set the necessary parameter values.
                                • Select "Incremental" for the deployment mode to avoid deleting existing resources.
    2. Save and Trigger the Release:
      • Save the release pipeline and create a release to deploy your Data Factory resources.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.