all Technical posts

5 Key Things you should know about Logic Apps Hybrid

Discover key insights to successfully run Logic Apps in a hybrid environment.

Control edge workloads by operating a cloud digital twin

Azure Logic Apps Hybrid allows you to control remote workloads by operating a digital twin in the cloud, ensuring seamless orchestration between cloud and edge environments. This approach enables real-time monitoring and management by defining the desired state in Azure and enforcing it on local infrastructure. To achieve this, three key steps are required: (1) connect a local cluster to Azure, (2) define the desired state using Azure Resource Manager (ARM), and (3) enforce the desired state on the edge, ensuring consistency and operational efficiency across distributed environments.

Connect a Kubernetes cluster to Azure

With this approach, Microsoft provides a consistent developer experience across both cloud and edge applications. Development teams can use the same tools, such as VS Code or the Azure Portal, to build integration workflows, ensuring a unified experience regardless of the hosting platform. They can deploy applications seamlessly by leveraging the same control plane (Azure Resource Manager) and tooling (CLI, Azure Portal, and Infrastructure as Code), simplifying deployment and eliminating the complexity of managing different environments. Additionally, Azure Monitor offers deep insights into running instances, providing consistent observability and diagnostics regardless of workflow location. Finally, scaling capabilities remain uniform, ensuring predictable and reliable behavior across the entire distributed solution.

Logic Apps Hybrid consistent developer experience

Logic Apps Hybrid consistent developer experience

It's a semi-connected environment

Keep in mind that this is a semi-connected environment, meaning it can temporarily operate in a disconnected mode. However, it is important to note that this technology relies on both outbound and inbound connections to function effectively.

Outbound connections (firewall-friendly) are used for:

  • fetching the desired state and transmitting to the cloud information about the azure-arc synchronization components (agent version, synchronization state, etc..) together with information about the resources deployed in the Kubernetes cluster (e.g. deployments, pods, etc.) .
  • sending container apps environment signals such as logging and billing information.
  • accessing to cloud functionalities that are not available yet on Logic Apps Hybrid like Integration Accounts and Managed Connectors.

Inbound connections, on the other hand, are necessary for accessing workflow execution history from the Azure Portal. To enable this, a LoadBalancer service is created to allow traffic from Azure to query the run history API and retrieve data stored on the remote SQL Server. Yes, your security team may not be thrilled, but this requirement is essential for maintaining visibility into what’s happening on the edge.

Logic Apps Hybrid inbound and outbound connections

Logic Apps Hybrid inbound and outbound connections

Arc and Container Apps concepts are blended

Given an arc-enabled connected cluster, we can create multiple (arc) locations but only one (aca) connected environment per location. A connected environment is the target destination where we can deploy one or more logic apps. If we translate this concept in the Kubernetes world, the connected environment is a digital twin of a Kubernetes namespace.

Deploying Logic Apps Hybrid

Deploying Logic Apps Hybrid

It leverages KEDA and its extensibility points

Logic Apps Hybrid leverages the target-based scaling mechanism to dynamically calculate the desired number of replicas needed to handle the workload efficiently. To achieve this, an external Logic Apps custom scaler is installed in the remote cluster, allowing KEDA (Kubernetes Event-Driven Autoscaler) to fetch workflow metrics stored in the local SQL Server.

KEDA will then leverage the Horizontal Pod Auto-scaler (HPA) to adjust the number of Logic Apps pod replicas based on real-time workload demand. By continuously monitoring execution metrics and scaling events, this mechanism ensures optimal performance, resource efficiency, and high availability.

Scaling Logic Apps Hybrid

Scaling Logic Apps Hybrid

In the picture below an sequence of events during a scale out and back.

Logic Apps Hybrid Scaling out and back

Logic Apps Hybrid Scaling out and back

Note that scaling to zero instances is not allowed, even though the underlying technologies powering Logic Apps Hybrid support it.

No drift detection

LogicApps Hybrid allows to host workflows into a customer-managed infrastructure (e.g. bare metal Kubernetes), while still benefiting from the Logic Apps platform.  This approach provides flexibility while still benefiting from the Logic Apps platform, but it also introduces additional operational considerations, particularly around configuration consistency.

Drift occurs when the actual state of a Kubernetes cluster diverges from the declared state in the control plane (Azure Resource Manager), often due to manual changes or failed updates. Logic Apps Hybrid does not include native drift detection or automatic reconciliation. Once deployed on an edge cluster, the infrastructure components do not actively monitor the cluster to detect unintended changes. This means that:

  • Configuration changes made directly on the cluster (e.g., modifying deployments, removing pods, or tweaking resource limits) will persist until manually corrected.
  • Failed updates or partial deployments might leave the environment in an inconsistent state without automatic rollback or remediation.
  • Security risks may increase if unauthorized modifications go unnoticed, potentially impacting workflow execution and resource availability.

Organizations leveraging this solution should consider to adopt policy enforcement, and monitoring strategies to ensure that their Logic Apps workloads remain in a predictable and well-managed state.

Subscribe to our RSS feed

Talk to the author

ContactMassimo

Azure Domain Lead

Share this

Hi there,
how can we help?

Got a project in mind?

Connect with us

Let's talk

Let's talk

Thanks, we'll be in touch soon!

Call us

Thanks, we've sent the link to your inbox

Invalid email address

Submit

Your download should start shortly!

Stay in Touch - Subscribe to Our Newsletter

Keep up to date with industry trends, events and the latest customer stories

Invalid email address

Submit

Great you’re on the list!