IgorRogachov
IgorRogachov

Reputation: 61

Get all Azure Data Factory pipeline runs using .NET sdk

How can be loaded all pipeline runs from Azure Data Factory using .NET SDK in one HTTP query to the factory? I have tried the QueryByFactoryWithHttpMessagesAsync method but it returns only 100 last runs.

var filter = new RunFilterParameters(DateTime.MinValue, DateTime.Now);

return client.PipelineRuns.QueryByFactoryWithHttpMessagesAsync(
                dataFactoryParameters.ResourceGroup,
                dataFactoryParameters.DataFactoryName,
                filter).Result.Body.Value;

Upvotes: 0

Views: 710

Answers (1)

Joel Cochran
Joel Cochran

Reputation: 7738

I don't have a code sample, but the QueryByFactoryAsync method returns a PipelineRunsQueryResponse instance, which includes a ContinuationToken property. You should be able to use that to get the next group of values.

Upvotes: 1

Related Questions