Setting AZCOPY_CONCURRENCY_VALUE on Storage Explorer MacOS Client

The problem this is solving…

Login

Blog History

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&sp=rwl&sv=2018-03-28&sr=c&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 *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.