Part 1 - Modularising Logic Apps: Building Reusable Cloud Automation Solutions
Introduction
Did you know you can call Logic Apps from other Logic Apps? This powerful capability truly transforms how you build cloud automation solutions!
In the evolving landscape of cloud automation, Microsoft's Logic Apps stand out as a powerful solution for creating integrated workflows with minimal code. As these workflows grow in complexity, a well-structured approach becomes essential. This is where modularisation comes into play – breaking down complex processes into reusable, manageable components.
In this article, we'll explore the concept of modular Logic Apps that can call other Logic Apps, enabling more organised, maintainable, and scalable solutions. We'll focus on understanding the concept and exploring how this approach might benefit your organisation's automation needs.

The Benefits of Modular Logic Apps
Before diving into implementation possibilities, it's worth understanding the key benefits of modular Logic Apps. Reusability stands as perhaps the most compelling advantage – when you build a component once, you can use it across multiple workflows, saving valuable development time. Maintainability also improves dramatically, as you can update functionality in one place instead of making changes to multiple workflows.
Modularisation brings simplification to complex processes by breaking them into focused, manageable parts. This approach also fosters team collaboration, as different team members can focus on specific modules according to their expertise. Your testing regime becomes more streamlined too, as you can test individual modules in isolation before integration.
One often-overlooked benefit is the improved security posture through reduced permission scopes. When your Logic Apps are modularised, each module can operate with only the specific permissions it needs to perform its task, rather than requiring broad permissions across the entire workflow. This principle of least privilege significantly enhances your security, as it limits potential attack surfaces and reduces the impact of any potential compromise. For example, a module that only needs to read from a specific database won't need write permissions to other resources, thereby reducing risk.

The scalability of your solution improves as well – you can easily expand by adding new modules without disrupting existing functionality. Perhaps most importantly, modularisation brings clarity, offering a clearer visualisation of your workflow's logical structure.
Conceptualising a Modular Security Response Workflow
To illustrate the concept, let's consider a security incident response workflow that demonstrates how a complex security response process could be broken into logical modules for better organisation. Such a workflow might monitor Microsoft Sentinel for security incidents, retrieve incident details, add indicators to Microsoft Defender, create a formatted HTML report, and conditionally add comments to the Sentinel incident.