Azure Function: Zip File

  • Sandro Pereira
  • Nov 21, 2023
  • 2 min read

Logic Apps, whether Consumption or Standard, do not provide built‑in capabilities to zip or compress files. You might wonder why this functionality still matters. Many legacy systems and integration scenarios require file compression, especially when email is the communication channel.

And yes, this still happens today. Some partners explicitly require messages or files to be sent by email. To reduce impact—such as avoiding attachment size limits or mailbox overload—teams often need to compress those attachments.

This approach also proves valuable when migrating AS‑IS BizTalk Server solutions to Azure, where AS‑IS means preserving the original solution requirements without functional changes.

Zip File Azure Function

📝 One-Minute Brief

Some integration scenarios still require files to be compressed before being sent or stored. This article presents a simple Azure Function that zips inbound files, making it easy to integrate compression into Logic Apps, email workflows, or legacy BizTalk migration scenarios.

And what does this Azure Function do?

The ZipFile Azure Function is simply an Azure Function that zips an inbound file. This can later be sent in an attachment to an email, sent to a folder, or stored in a storage account.

Where can I download it?

You can download the complete Azure Functions source code here:

Hope you find this helpful! So, if you liked the content or found it useful and want to help me write more, you can buy (or help me buy) my son a Star Wars Lego! 

Thanks to my team member, Luís Rigueira, for helping me realize and implement this idea.

Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc. He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

Leave a Reply

Your email address will not be published. Required fields are marked *

The Ultimate Cloud
Management Platform for Azure

Supercharge your Azure Cost Saving

Learn More
Turbo360 Widget

Back to Top