Azure CLI az download-batch automatically decompresses gzipped files

Anastasiia Ilina 71 Reputation points
2020-10-29T13:33:00.407+00:00

Hello!
When I download files via command-line Azure CLI (version 2.14.0) az storage blob download-batch, they are automatically decompressed. For example, in storage, they are marked with content-encoding gzip, and their size is smaller, but after downloading to the computer they are no longer compressed and have a bigger size. Is there any setting that could help me to download the files via Azure CLI command exactly in the form they are in storage, compressed?

Thank you!

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,532 questions
0 comments No comments
{count} vote

Accepted answer
  1. deherman-MSFT 34,281 Reputation points Microsoft Employee
    2020-10-29T18:22:45.877+00:00

    @Anastasiia Ilina
    This happens because you have ContentEncoding=gzip, it is the same when you download the file via a browser, it will automatically decompress. Here is a similar thread where the user saw the same issue. One workaround I found was to use azcopy, you could also use Storage Explorer.

    Hope this helps! If you have further issues or questions please let us know.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful