title: Invoking Azure Data Factory (V2) pipeline from Azure Functions
body: <p><strong>Requirement:</strong> I am trying to invoke a ADFV2 pipeline from Azure Function. The ADFV2 pipeline is already created through .NET api.</p>
  
  <p><strong>Problem</strong>: Not able to resolve <code>Microsoft.Azure.Management.DataFactory</code> (this one was introduced newly for ADFV2) nuget package where else the nuget package <code>Microsoft.Azure.Management.DataFactories</code> (this one already exists from the timeline of ADFV1) gets successfully accepted. </p>
  
  <p><strong>Error</strong> - Unable to resolve 'Microsoft.Azure.Management.DataFactory (>= 0.2.1)' for '.NETFramework,Version=v4.5.2'. </p>
  
  <p><strong>Why through Azure Function and not Trigger or Custom Activity</strong>: 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.</p>
  
  <p><strong>Note</strong>: Already went through the <a href="https://stackoverflow.com/questions/39023623/azure-data-factory-how-can-i-trigger-scheduled-onetime-pipelines">link</a> which talks about the same thing only difference being its ADFV1.</p>