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

Join us at the 2025 Microsoft Fabric Community Conference. March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for $400 discount. Register now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebFBC_Carousel

Fabric Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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