Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
v-rajethakur
Microsoft Employee
Microsoft Employee

Is it possible to call a MS fabric Data Pipeline from C# using managed identity.

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.

1 ACCEPTED SOLUTION
FabianSchut
Super User
Super User

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

View solution in original post

2 REPLIES 2
v-rajethakur
Microsoft Employee
Microsoft Employee

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 ?

FabianSchut
Super User
Super User

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

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.