Automating Fabric Pipeline Execution with Logic Apps (Consumption Model)

In this blog, you'll learn how to trigger a Microsoft Fabric Pipeline using Azure Logic Apps, step-by-step. This integration can help automate data workflows and schedule tasks easily. For this walkthrough, Iโve used:
Fabric Trial Workspace
Azure Logic Apps (Consumption model)
โก Important Prerequisite: Enable Fabric API Access
Before you start, ensure that Service principals can use Fabric APIs is enabled in your Fabric Admin Portal.
Navigate to Fabric Admin Portal โ Tenant Settings.
Find and enable the option: Service principals can use Fabric APIs.
Without enabling this setting, the Logic App will not be able to trigger the Fabric Pipeline.
๐ ๏ธ Step 1: Create a Fabric Pipeline
First, create a simple Fabric Data Factory Pipeline. Add a Wait
activity to the pipeline and introduce a parameter named WaitTimeInSecs
.
โ๏ธ Step 2: Set Up Azure Logic App
Navigate to Logic Apps in the Azure portal.
Open the Identity section and enable System-assigned managed identity.
โฐ Step 3: Add a Schedule Trigger
In the Logic App designer, add a Recurrence trigger to control when your pipeline should be triggered (e.g., every day at a specific time).
๐ Step 4: Add HTTP Action
Next, add an HTTP action to call the Fabric REST API.
โก๏ธ API Endpoint: POST https://api.fabric.microsoft.com/v1/workspaces//items//jobs/instances?jobType=Pipeline
Replace
<your WS Id>
with your Workspace IDReplace
<pipeline id>
with your Pipeline ID๐ก Tip: You can find both values in the URL of your Fabric pipeline editor.
๐ Request Body:
Add the following JSON to the Body of the HTTP action to pass parameters:
{ "executionData": { "parameters": { "WaitTimeInSecs": 5 } } }
๐ Step 6: Save and Trigger the Logic App
Save the Logic App.
Run it manually (or wait for the scheduled time).
๐ Step 7: Monitor the Pipeline Run in Fabric
Navigate back to your Fabric Workspace and go to Pipeline Run History to confirm the pipeline executed successfully.
โ Conclusion
By integrating Logic Apps with Microsoft Fabric Pipelines, you can automate data processing workflows with precision and flexibility. This is especially useful for scheduled tasks or event-driven scenarios.
Thanks for reading.
Subscribe to my newsletter
Read articles from anantha krishna directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
