简体   繁体   中英

Invoking Azure Data Factory (V2) pipeline from Azure Functions

Requirement: I am trying to invoke a ADFV2 pipeline from Azure Function. The ADFV2 pipeline is already created through .NET api.

Problem : Not able to resolve Microsoft.Azure.Management.DataFactory (this one was introduced newly for ADFV2) nuget package where else the nuget package Microsoft.Azure.Management.DataFactories (this one already exists from the timeline of ADFV1) gets successfully accepted.

Error - Unable to resolve 'Microsoft.Azure.Management.DataFactory (>= 0.2.1)' for '.NETFramework,Version=v4.5.2'.

Why through Azure Function and not Trigger or Custom Activity : The ADFV2 pipeline is dependent on another process (the copy activity source dataset might not be ready when the pipeline will be scheduled to run) which could be achieved by .NET custom activity in ADFV2 itself but thought to try in the other possible way around.

Note : Already went through the link which talks about the same thing only difference being its ADFV1.

Answering and providing some other information so that others who might get stuck on situations like the above would get benefited.

So, finally was able to invoke ADFV2 pipeline from Azure Functions but for some reason was not able to add Nuget packages( Microsoft.Azure.Management.DataFactory ) by referring them in project.json or using them directly in run.csx . So, uploaded the dll in bin folder and referred them in my function app as if they were external assemblies which worked fine for my application and was able to invoke all the ADFV2 pipeline related methods (ex: DataFactoryManagementClient , CreateRunWithHttpMessagesAsync etc...).

Also, just started working on VS2017 (version 15.6.0 preview 1.0 ) and checked the Cloud -> Azure Functions application where managing the above mentioned Nuget packages is working smoothly.

我也试图从azure函数调用管道,但是我做不到,您能帮我吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM