The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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