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&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 *

You May Also Like…

Toggen builds a new website

So I have built and hosted a new website for Roger Clark Pest Management they are a family owned and operated Pest...

WizTree

Just downloaded WizTree (not a sponsor) from https://wiztreefree.com/ It seems to do what it says on the tin which is...

Scam call from “Telstra”

Just had a call from a man with a sub-continental accent from caller ID 0734946596 Told me there was problem with my...