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.

📝 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.