ARM Template Parameters not recognised by DevOps Task in Override Parameters Dialog for ADF CD

Copper Contributor

How do I fix:

 

Warning: Failed to download the template parameters file from the given path '$(System.DefaultWorkingDirectory)/_myproject-poc/ArmTemplates/ARMTemplateParametersForFactory.json' with the following error: The item ArmTemplates/ARMTemplateParametersForFactory.json could not be found.

 

in the Parameters Override dialog, when deploying an ARM Template from files that were built in a pipeline?

 

in the Parameters Override dialog, when deploying an ARM Template from files that were built in a pipeline?

 

pavankumar2mf_0-1638295054093.png

 

I've done this previously when my source artifact is a direct reference to a Git repo which contained the Template files, and it worked perfectly. ADO recognised the Git repo, found my target branch, found the relevant files within the codebase, and was able to parse the parameters file, to give me the UI to override those parameters. All good.

 

 

Now I'm trying to move to a model where a pipeline builds the Template files for me and publishes them as an artifact to use.

 

Artifacts generated contain below files:

 

pavankumar2mf_1-1638295323742.png

 

The pipeline seems to work fine, and I've verified that all the relevant files are created.

But when I try to use those files as the artifact source, the Override Parameter dialog can't "find" them.

 

What am I doing wrong, and how do I fix this?

10 Replies

@pavankumar2mf 

 

Has no one replied to this I am having the same issue.

@pavankumar2mf I have the exact same issue as you describe. Did you get it resolved?

Hi, any news with this issue? I am having the same problem and I have tried every possible solution found on internet.

@Fernando_Benedetto  Interacted with Microsoft team the information provided by them is below

 

Resolution: Engineer from Dev ops team mentioned Warning was for informing a file was not found, but the actual file was within and artifact and Informed that behavior was expected and confirmed the pipeline was working fine.

 

Interacted with Microsoft team the information provided by them is below



Resolution: Engineer from Dev ops team mentioned Warning was for informing a file was not found, but the actual file was within and artifact and Informed that behavior was expected and confirmed the pipeline was working fine.
As pavankumar2mf said, It's just a warning. You have to continue with the configuration despite the message. Once finished, if you create a release no error will appear.

@Fernando_Benedetto yes I have no error for the pipeline but I want to have no warning. I understand that you don't resolve this issue. 
If you resolve this warning, it will be very great. Thanks for your answer.

 

Yes, I agree. I also don't want to see that confusing warning but, apparently, there is no way to avoid it.

@Fernando_Benedetto 

 

Anyhow the warning of path not found will come .

click on Override template parameters and set the parameters manually. Unfortunately, since build is only accessible in run time, parameters are not generated and you will have to add them manually one by one.