1

I have a build pipeline which builds *.p12 files and been published a artifacts in the build pipeline

How to copy files from azure Devops pipeline workspace or from published artifacts to Azure storage account (Fileshare) path

Rahini P
  • 21
  • 3

3 Answers3

1

“Az storage file upload “ az cli command works to upload files from azure Devops pipeline workspace to fileshare storage account

Rahini P
  • 21
  • 3
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Sep 21 '22 at 22:46
0

You could Azure file copy task in Azure pipeline to copy file from Azure pipeline to azure storage account. This task works only when run on Windows agents.

enter image description here

Suki Ji-MSFT
  • 603
  • 2
  • 5
  • This can upload to only blob , was looking for to upload to fileshare location, but then “az storage file upload” az cli worked – Rahini P Sep 16 '22 at 13:09
0

Az storage file upload is what y'all are looking for. Batch upload can be used to do files instead of directories. Despite what the website says a combination of connection string and share name will also work.

Since it took me a while to find it, here is the command to get the connection string and then reuse it later:

connectionString=$(az storage account show-connection-string -g **name of your resource group** -n **name of storage account** --query connectionString -o tsv )

Niehm
  • 141
  • 1
  • 13