## New feature Sometimes azcopy can use more memory than is available. See https://github.com/nextflow-io/nextflow/pull/5799#issuecomment-2939233221 for a description. ## Use case We can set the maximum azcopy memory usage so that it does not exhaust local memory and crash. ## Suggested implementation We should be able to add the following environment variable in the same manner as other azcopy opts: `AZCOPY_BUFFER_GB` https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-optimize#optimize-memory-use