Check! Use secure files in Azure DevOps Pipeline
You can put your secure files on Azure Pipeline and use it. Let’s check below.
The steps are simple.
- Upload your secure files in Library on Pipeline
- Download the files in the agent machine with using
DownloadSecureFile@1
task - Only at first, allow the pipeline to access the secure files
Upload your secure files
At the “Secure files” tab in the “Library” page on Azure Pipeline, you can upload secure files. Click “+ Secure file” and upload the file.


For details of the secure files feature, see https://docs.microsoft.com/en-us/azure/devops/pipelines/library/secure-files?view=azure-devops.
Download the secure files in the agent machine
How to use the secure files that uploaded in secure files in Library in your agent machine, use DownloadSecureFIle@1
task like below.
- task: DownloadSEcureFile@1
name: <task name>
inputs:
secureFile: <Name of the uploaded secure file>
The downloaded file is placed at $(Agent.TempDirectory)
. Also, you can refer the path with using the prepared variable such as $(<task name>.secureFIlePath)
in the above example.
For details, see https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/download-secure-file?view=azure-devops.
Only at first, allow the pipeline to access the secure files
When you run the pipeline first, you have to allow access to the secure files.
At that, you can see the message then click “view” on the pipeline progress page.

Click the “Permit” buttons to allow the pipeline to access the secure files.


That’s all. After that, your pipeline would run with your secure files.
Enjoy DevOps life. :)