Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Is it possible to call a MS fabric Data Pipeline from C# web API using managed identity. My data pipeline executes a notebook and it is working properly. But I want to call this data pipeline from c# code.
Solved! Go to Solution.
Do you mean with "call a MS Fabric data pipeline" that the API should start a run of the data pipeline? If that is the case, I think you need this Fabric API for that: https://learn.microsoft.com/en-us/rest/api/fabric/core/job-scheduler/run-on-demand-item-job
Unfortunately, this specific API does not support managed identity.
When it may support Managed Identity in the future, you should still run the C# function in an environment that supports managed identity. You could for example run your code with Azure Functions or on an Azure VM. https://learn.microsoft.com/en-us/azure/app-service/overview-managed-identity?tabs=portal%2Chttp
Thanks for the response. I am able to trigger the pipeline from C#, but hardcoded the access token that I got from developer tools on MS fabric Data Pipeline web page. But now I need to generate that access token using c# code. I think managed identity is not yet supported and also I dont want to use client secret. Any other way for it ?
Do you mean with "call a MS Fabric data pipeline" that the API should start a run of the data pipeline? If that is the case, I think you need this Fabric API for that: https://learn.microsoft.com/en-us/rest/api/fabric/core/job-scheduler/run-on-demand-item-job
Unfortunately, this specific API does not support managed identity.
When it may support Managed Identity in the future, you should still run the C# function in an environment that supports managed identity. You could for example run your code with Azure Functions or on an Azure VM. https://learn.microsoft.com/en-us/azure/app-service/overview-managed-identity?tabs=portal%2Chttp