In this article, we are going to learn how to copy the files from the git repository to an Azure Storage Account.
Prerequisites
- A valid Azure Subscription
- A valid Azure DevOps Account
- Create a Storage account and create a Container named “sourcefiles”. As shown below the container is empty.

Azure DevOps – Storage Account – Empty
In this article, we are going to build the following two pipelines using Classic editor. You can follow the same approach even if you would like to create YAML base pipelines.
- Build Pipeline – The build pipeline copies the files from Azure DevOps repository to the Azure DevOps artifacts
- Release Pipeline – The release pipeline picks the files from the Azure DevOps artifacts to Storage Account.
Let’s start authoring the pipelines
Create an Artifactory
As shown below, create a set of files in the repository that you would like to copy to Azure Storage account. For the sake of this article, I have created a folder and two files.

Azure DevOps – Git Repository – Static Files
Create Build Pipeline
In this section, we will work on creating a Build pipeline for copying the files from the Azure DevOps – Git repository to Azure DevOps antifactory. It’s a two-step process.
| Step | Task | Comments |
| Step1 | Copy Files | In this step, the Copy Files task copies the files from the Azure DevOps repository to a Staging directory $(Build.ArtifactStagingDirectory) of the Agent |
| Step2 | Publish Build Artifacts | In this step, the Publish Build Artifacts task, copies the files from the Staging Directory $(Build.ArtifactStagingDirectory) to the Azure DevOps artifacts from where the Release pipeline could pick. |
Below is how it looks once the above two tasks are created.
Step 1 - Copy files Task

Azure DevOps – Build Pipelines – Copy Files Task
Step 1 - Publish Build Artifacts Task









Join the conversation! Your thoughts help the community grow.