Answers: <p>Steps for download are described here: <a href="https://www.c-sharpcorner.com/article/how-to-download-azure-blob-storage-using-azure-powershell/" rel="nofollow noreferrer">How To Download Azure BLOB Storage Using Azure PowerShell</a>. According to this article, you have to use the connection string from the Access keys page. You can create your custom secret variable (<a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&amp;tabs=yaml%2Cbatch" rel="nofollow noreferrer">Variables</a>) and save a connection string in your new variable. Then in your ps scripts you can reference to connection string (stored in variable) with "$env:VARIABLE_NAME".  </p>
  
Answers: CC BY-SA 4.0
Answers: 2019-06-06T10:44:31.507Z
Answers: 2019-06-06T10:44:31.507Z
Answers: Shamrai Aleksander
Body: <p>We are trying to set up a CI pipeline for building several Docker containers and deploying them to a container registry using Azure DevOps. Our code, the Docker and configuration files all reside in a Azure git repository and building those containers just works fine.</p>
  
  <p>However, we have to build one container around a tomcat app that we only have as a .war file that is approx. 20Mb in size. We do not want to commit this file to our repository (we are not convinced that using git LFS would solve the problem because of experiences in other projects), but instead keep it on an azure storage account (either blob or file share storage).</p>
  
  <p>My problems start when I want to include a task to download this file into the build environment as a task in the build pipeline. Getting a file that is openly accessible is easy with either a powershell or bash script. However, in order to download from the storage account you first need to authenticate and I can not find a good way to achieve this.</p>
  
Tags: <azure-devops><azure-pipelines>
Title: How to get dependency from file share in Azure DevOps pipeline
UserDisplayName: der_berni
ThreadText: # How to get dependency from file share in Azure DevOps pipeline
  
  (Asked by: username_0 on 2019-06-06)
  
  We are trying to set up a CI pipeline for building several Docker containers and deploying them to a container registry using Azure DevOps. Our code, the Docker and configuration files all reside in a Azure git repository and building those containers just works fine.
  
  However, we have to build one container around a tomcat app that we only have as a .war file that is approx. 20Mb in size. We do not want to commit this file to our repository (we are not convinced that using git LFS would solve the problem because of experiences in other projects), but instead keep it on an azure storage account (either blob or file share storage).
  
  My problems start when I want to include a task to download this file into the build environment as a task in the build pipeline. Getting a file that is openly accessible is easy with either a powershell or bash script. However, in order to download from the storage account you first need to authenticate and I can not find a good way to achieve this.
  
  **Tags:** azure-devops, azure-pipelines
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-06-06. Score: 1 | Accepted answer
  
  Steps for download are described here: [How To Download Azure BLOB Storage Using Azure PowerShell](https://www.c-sharpcorner.com/article/how-to-download-azure-blob-storage-using-azure-powershell/). According to this article, you have to use the connection string from the Access keys page. You can create your custom secret variable ([Variables](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch)) and save a connection string in your new variable. Then in your ps scripts you can reference to connection string (stored in variable) with "$env:VARIABLE\_NAME".
  
  
  ---
  
  