Search code examples
azure-devopsazure-blob-storageazure-pipelines-release-pipelineazcopy

How to copy a VSTS artifact to a Azure Storage account container folder?


I have a VSTS release pipeline in which I need to copy the build artifact to a storage account blob container. This is pretty easy with the Azure File Copy task, but the difficulty seems in the need to specify a folder in the container to copy the file to.

I tried extending the container name, but that (obviously) doesn't work. Rewriting the destination in the "additional arguments" section neither. Looking at the source of the task I cannot find anything in that direction, so I'm wondering whether it is even possible.

Any idea on how to do this using the build task? Or do I need to use Powershell for this?


Solution

  • You can put the folder (e.g. A) in another folder (R), then specify R folder path in Source box of Azure File Copy task, then the folder A will be in container.