- Use the
--block-size
flag: You can control the block size used by AzCopy when uploading files. Using a smaller block size might help to reduce memory consumption. For example, you can set the block size to 8 MB by using the following command:
azcopy cp "<local_file_path>" "https://<storage_account>.blob.core.windows.net/<container_name>/<file_name>?<SAS_token>" --block-size 8388608
- Use the
--cap-mbps
flag: Limiting the throughput of AzCopy can help reduce memory usage. To limit the throughput to a specific value in megabits per second, use the--cap-mbps
flag followed by the desired value:
azcopy cp "<local_file_path>" "https://<storage_account>.blob.core.windows.net/<cont