Sakaldeep Yadav
Sakaldeep Yadav

Reputation: 446

Azure DevOps Release Pipelines: Failed to download the template parameters file from the given path

I am deploying ARm template with 'Azure Resource Group Deployment' template and getting an error at release 'Error: Could not find any file matching the template file pattern'

Getting below warning at override template parameters, however, I have already selected them from the build.

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

tried this: https://learn.microsoft.com/en-us/azure/devops/pipelines/apps/cd/azure/deploy-provision-azure-vm?view=azure-devops

Upvotes: 1

Views: 3183

Answers (2)

bhushan chaudhari
bhushan chaudhari

Reputation: 1

Use the below code to publish your artifacts

  • task: PublishBuildArtifacts@1 displayName: 'Publish Artifacts to drop' inputs: ArtifactName: 'ARMTemplates' PathtoPublish: '$(System.DefaultWorkingDirectory)/DevOps-CI/ArmTemplates' condition: succeededOrFailed()

Upvotes: 0

Daniel Mann
Daniel Mann

Reputation: 59016

'$(System.DefaultWorkingDirectory)/mybuild-CI' is not a file. You need to specify a path to a parameters JSON file.

If there's no JSON file and you want to only provide override values, then leave the field for parameters file blank.

Upvotes: 2

Related Questions