making a call to Azure data factory V1 REST API with Powershell V5.0 RRS feed

  • Question

  • Hello,
    I'm trying to get the list of pipelines using PowerShell 5.0 using the Azure Data Factory V1.0 REST API -

    https://management.azure.com/subscriptions/{SubscriptionId}/resourcegroups/{resourceGroup} /providers/Microsoft.DataFactory/datafactories/{datafactory}/datapipelines/?api-version=2015-10-01
    using the Invoke-RestMethod. The REST API has pagination implemented.
    Can someone help with a sample  traverse through the pagination in Powershell Invoke-RestMethod?
    Powershell 6.0 seems to have -FollowRelLink & MaximumFollowRelLink parameters in Invoke-RestMethod. In lieu of these parameters in PS 5.0 what are the options to traverse through the paged output of ADF V1.0 REST API?

    I'm very early stages of learning PS so any help is appreciated.

    Thanks in advance.

    Wednesday, June 27, 2018 5:24 AM

All replies

  • I figured that I'd have to use a Do-While loop using the cursor link. Don't know if there is any better way to implement it.
    Wednesday, June 27, 2018 6:31 AM