Insights Overview | One51 Australia

Enterprise Integration: MuleSoft to Azure Functions

Written by One51 | Dec 1, 2026, 3:10:02 AM
How a structured migration approach can preserve business logic, modernise integration workflows and maintain interoperability across enterprise systems.

Enterprise integrations connect business applications, enable data exchange and support critical operational processes. As organisations modernise their technology platforms, migrating existing integrations requires careful consideration of business logic, data transformations and dependencies on downstream systems.

As part of an integration modernisation project for an organisation in the energy sector, our team migrated existing MuleSoft workflows to C# Azure Functions, using Azure Service Bus for message-driven processing.

The focus was not simply to replace one technology with another, but to reproduce existing integration behaviour while establishing a clear, maintainable implementation on Azure.

The challenge: Preserving existing behaviour

The original MuleSoft workflows supported several integration patterns, including API requests, asynchronous messaging, attachment processing and database operations.

Understanding these workflows was an important first step. The team needed to analyse MuleSoft XML configurations and DataWeave transformations, identify external dependencies, and translate the existing processing rules into C# without unintentionally changing the expected behaviour.

Key challenges included:
  • Translating DataWeave mappings and payload transformations into C#.

  • Reproducing Azure Service Bus message-processing and publishing patterns.

  • Handling attachments through Azure Blob Storage and downstream APIs.

  • Replacing MuleSoft database operations with C# database access.

  • Preserving response handling, error conditions and message-delivery behaviour.

The approach: Rebuild around explicit contracts

We used a behaviour-focused migration approach, defining each workflow through four elements: its input contract, transformation logic, external dependencies and expected output.

This provided a consistent blueprint for implementing and validating the replacement functions.

Azure Functions handled individual processing responsibilities, while Azure Service Bus supported asynchronous communication between components. Azure Blob Storage provided the file-access layer for attachment processing, and C# database access reproduced the required stored-procedure interaction for outage information.

The migration covered four principal workflows:

  • Defect and work-order creation: Transforming incoming messages into downstream API requests and publishing processing outcomes.

  • Attachment processing: Resolving file references, retrieving content from Blob Storage and preparing attachment payloads for downstream processing.

  • Work-order updates: Forwarding business events while maintaining the expected message structure and metadata.

  • Outage information retrieval: Calculating the requested date window, executing an existing SQL stored procedure and returning structured results through an HTTP API.

A key consideration was preserving the original processing conditions. For example, attachment processing was initiated only when the corresponding work-order creation succeeded. Similarly, downstream API responses were interpreted according to their status and business-level result codes.

This approach helped separate business rules from MuleSoft-specific implementation details while retaining the integration contracts on which connected systems depended.

Testing and validation

The migrated functions underwent unit and integration testing in development/test environments.

Validation focused on data transformations, message payloads, downstream interactions, response handling and the behaviour of individual workflows. Testing also considered error handling and the conditions under which subsequent processing should occur.

The implementations were tested successfully within the project scope. Production deployment and production-level outcomes are outside the scope of this account.

Key takeaways

Three lessons stand out for organisations planning integration modernisation:

  1. Understand before rebuilding: Existing XML flows and transformation rules are valuable sources of business logic. Analysing them before implementation helps reduce the risk of unintended behavioural changes.

  2. Treat integration contracts as design artefacts: Explicit input and output schemas, field mappings and dependency definitions make implementations easier to review and validate.

  3. Test the complete interaction, not just the function: Integration testing helps establish whether messages, API calls and database operations work together as expected, including when failures occur.

Conclusion

Migrating enterprise integrations requires a combination of business understanding, technical analysis and disciplined testing. Reproducing the existing behaviour is just as important as implementing the new technology. This energy-sector project demonstrated a structured approach to moving MuleSoft workflows to Azure Functions while retaining the required data transformations, messing patterns and downstream interactions.

For organisations considering similar initiatives, the key is to treat migration as a process of understanding and validating business behaviour - not merely translating code between platforms.

If your business needs help with migrating enterprise integrations, please contact the One51 team.