Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure DevOps - AzureBlob File Copy task fails while copying files to blob storage

I am creating a release pipeline on Azure DevOps for deploying ReactJs App. I have two tasks in my release pipeline: Download Build Artifact task and AzureBlob File Copy task. The AzureBlob File Copy task throws the following error:

Upload to container: '$web' in storage account: 'XyzContainer' with blob prefix: '' failed with error: 'AzCopy.exe exited with non-zero exit code while uploading files to blob storage.

Please see the following screenshot:

enter image description here

Following are the settings for the AzureBlob File Copy task:

enter image description here

Thank you.

like image 618
Muhammad Imran Khan Avatar asked Jul 11 '20 11:07

Muhammad Imran Khan


People also ask

How do I copy an azure Devops task?

From the web portal, open the work item you want to copy or clone, open the … context menu, and choose Create copy of work item.


1 Answers

I made the following two changes to AzureBlob File Copy task settings and it worked!

Change #1: Downgrade the task version from 4 to 2.

Change #2: In the container name field, add quotation marks with the container name. For example: from web --> "$web"

enter image description here

like image 107
Muhammad Imran Khan Avatar answered Sep 28 '22 12:09

Muhammad Imran Khan