Skip to content

Instantly share code, notes, and snippets.

@LanceMcCarthy
Created December 7, 2019 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LanceMcCarthy/38e31db561fe939952947c49ccee93c8 to your computer and use it in GitHub Desktop.
Save LanceMcCarthy/38e31db561fe939952947c49ccee93c8 to your computer and use it in GitHub Desktop.
YAML for Release Pipeline Copy To Azure Blob
steps:
- task: AzureFileCopy@2
displayName: 'AzureBlob File Copy'
inputs:
SourcePath: '$(System.DefaultWorkingDirectory)/YOUR_DROP_FILES/drop/'
azureSubscription: 'YOUR_AZURE_SERVICE_CONNECTION' (use release pipeline task pickers to help and authenticate)
Destination: AzureBlob
storage: NAME_OF_AZURE_STORAGE_ACCOUNT (use release pipeline task pickers to help)
ContainerName: 'YOUR_BLOB_NAME' (find this in Azure, or use desktop Azure Storage Explorer to help)
AdditionalArgumentsForBlobCopy: '/Pattern:*.zip' (IMPORTANT!!! It seems to fail unless you set a folder as SoucePath and use a pattern to match the file extension. Or use *.* if you want all files copied into folder)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment