Log Information Of Pipelines RRS feed

  • Question

  • Hi,

    How to get the log information of deployed pipelines in Azure ADF through .Net? Could anyone help me on this please?


    Mohammed Rafi. 

    Monday, March 18, 2019 7:12 AM

All replies

  • Hi Mohammed Rafi,

    This article describes how to monitor a pipeline in a data factory by using different software development kits (SDKs).

    And also, you may refer “Monitor a pipeline run”.

    Hope this helps.

    Monday, March 18, 2019 8:55 AM
  • Hi Pradeep,

    Thank you for your response,  We are able to get all properties of pipelines(Success,Failed,In progress) from the Microsoft predefined API's in .Net,but we are not able to get the log information of pipelines. 

    Thanks in Advance.


    Mohammed Rafi

    Regards, Mohammed Rafi

    Monday, March 18, 2019 10:35 AM
  • Hello Mohammed

    When you say Log information, do you mean the metadata associated with the pipeline run?

    The QueryByPipelineRun method should return all the runs based on the filter criteria.

    The activityRunOutput variable in the below code sample should give you the rows copied, throughput etc.

    var pipelineRun = Config.Client.PipelineRuns.Get(Config.ResourceGroupName, Config.DataFactoryName, item.RunId); if (pipelineRun.Status.ToUpper() == "SUCCEEDED") { List<ActivityRun> activityRuns = Config.Client.ActivityRuns.QueryByPipelineRun(Config.ResourceGroupName, Config.DataFactoryName, item.RunId, new RunFilterParameters { LastUpdatedAfter= DateTime.UtcNow.AddDays(-2), LastUpdatedBefore = DateTime.UtcNow.AddDays(2) }).Value.ToList(); var activityRun = activityRuns.First();

    var activityRunOutput = activityRun.Output.ToString() }

    Wednesday, March 20, 2019 7:55 AM
  • Hi Rafi,

    Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same. And, if you have any further query do let us know.

    Friday, March 22, 2019 4:11 AM