Azure blob storage: azcopy tips

Some utils commands for managing files on Azure Blob Storage.

copy a single file

azcopy cp --put-md5 '[source_file]' 'https://[storage_account_name].blob.core.windows.net/[container_name]/[sas_token]'

copy recursive files

azcopy cp --put-md5 --recursive '[source_dir]' 'https://[storage_account_name].blob.core.windows.net/[container_name]/[sas_token]'

sync files

azcopy sync --put-md5 '[source_dir]' 'https://[storage_account_name].blob.core.windows.net/[container_name]/[sas_token]'

download single file

azcopy cp '[source_dir]' 'https://[storage_account_name].blob.core.windows.net/[container_name]/[file]/[sas_token]'

delete single file

azcopy rm 'https://[storage_account_name].blob.core.windows.net/[container_name]/[file]/[sas_token]'

delete recursive files

azcopy rm --recursive=true 'https://[storage_account_name].blob.core.windows.net/[container_name]/[file_or_dir]/[sas_token]'