Setting AZCOPY_CONCURRENCY_VALUE on Storage Explorer MacOS Client

Written by James McDonald

September 21, 2019

The problem this is solving is failed azcopy uploads on slow internet connections.

Firstly locate the AzCopyClient.js file and open it in editor

vim "/Applications/Microsoft Azure Storage Explorer.app/Contents/Resources/app/node_modules/se-az-copy/dist/src/AzCopyClient.js"

Add envVars.AZCOPY_CONCURRENCY_VALUE = 4; replace 4 with a number that works on your particular connection. The slower the lower. The default client does a calc based on CPU Cores and mine originally set the concurrent rate to 64 (8 cores * 8 I think)

You know you have it correct when you copy the azcopy command from Storage Explorer and it shows the export value

export AZCOPY_CRED_TYPE=Anonymous;
export AZCOPY_CONCURRENCY_VALUE=4;
./azcopy copy "/Users/jmcd/Downloads/ub3a.zip" "https://tgntablestoretest.blob.core.windows.net/blob1/ub3a.zip?se=2019-09-24T00%3A48%3A38Z&amp;sp=rwl&amp;sv=2018-03-28&amp;sr=c&amp;sig=<REDACTED>" --overwrite=false --follow-symlinks --recursive --from-to=LocalBlob --blob-type=BlockBlob --put-md5;
unset AZCOPY_CRED_TYPE;
unset AZCOPY_CONCURRENCY_VALUE;

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…

How to Research a CPU Upgrade

How to Research a CPU Upgrade

Upgrade Time! Doing a lot of VMWare Workstation virtualization to create labs for self-study and training. Finding...