Search code examples
azurecontainersblobazure-pipelineszip

How to create a zip file from Azure blob storage container files using Pipeline


I have some dynamically created files in a blob storage container. I want to send it through email as a single attachment.

The total file size is less than 5 MB. But here the difficulty I am facing is, when I try to compress the file using CopyData options, the compressed/zipped file not creating properly with multiple files.

If I try to zip a single file by giving its full path and filename, it is working fine. But when I give a folder name to compress all the files in that folder, it is not working correctly.

Please note that here I am not using any kind of external C# code or libraries. enter image description here

Any help appreciated Thank you


Solution

  • You can reference my settings in Data Factory Copy active:

    Source settings:

    enter image description here

    Source dataset settings:

    enter image description here

    Sink settings:

    enter image description here

    Sink dataset settings:

    enter image description here

    Pipeline works ok:

    enter image description here

    Check the zip file in contianer containerleon:

    enter image description here

    Hope this helps.