Unable to override template parameters in Automated publishing for continuous integration and delivery - Azure Data Factory

M, Murugeswari (Cognizant) 456 Reputation points
2022-01-28T05:56:06.663+00:00

In the release pipeline of Azure Devops, I am trying to deploy ARm template with 'Azure Resource Group Deployment' template through build but getting the below error:-

169351-image.png

I am unable to override parameter template

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,196 questions
{count} vote

3 answers

Sort by: Most helpful
  1. AnnuKumari-MSFT 32,161 Reputation points Microsoft Employee
    2022-01-31T06:42:38.727+00:00

    Hi @Anonymous ,
    Thankyou for using Microsoft Q&A platform and posting your query.

    By the error message, It seems the main root is not set correctly. You have set '$(System.DefaultWorkingDirectory)/_ADF_PoC/ArmTemplates/ARMTemplateForFactory.json' as the path for override template parameter. Could you please confirm:

    1. _ADF_PoC : is the artifact name you have set while creating the release pipeline
    2. ArmTemplates : is the name of your dev adf
    3. ARMTemplateForFactory : is the name of json file pointing to Template parameter

    If you go to adf_publish branch of your GIT repo , you will be able to see two json files like these:
    169792-image.png

    For templateparameter , you have to go with the second option (not the first one)

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.
      Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

  2. M, Murugeswari (Cognizant) 456 Reputation points
    2022-02-22T15:57:58.9+00:00

    Hi @AnnuKumari-MSFT ,

    Yes, I have selected Build Artifact as the source Type. Because I have configured Build pipeline to generate artifacts instead of adf_publish

    [ Old method --> We will publish the pipeline from collaboration branch, it will get validate and stored as adf artifacts in adf_publish branch and from that branch we can deploy it.]

    But if we use build pipeline, we no need to publish, instead if I give pull request from my working branch to collaboration branch, automatically this build pipeline validates and generates artifacts in build folder. From there we can deploy. So only I chose the Build artifact. I cant chose Azure Repos since I didn't validate and publish anything

    0 comments No comments

  3. M, Murugeswari (Cognizant) 456 Reputation points
    2022-02-22T16:00:49.467+00:00

    I got an answer from a blog

    176850-image.png

    Since build is accessible only during Run Time, I think I am facing error. Correct me If I am wrong.

    BLOG LINK : https://asankap.wordpress.com/2021/03/02/automated-publish-in-azure-data-factory-using-devops/

    Thanks