5
votes

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.

1

1 Answers

6
votes

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