web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Azure Resource Manager...
Power Automate
Answered

Azure Resource Manager - Processing nextLink Property

(0) ShareShare
ReportReport
Posted on by 16

I'm getting resources from a given subscription and I'd like to manually parse through the list at times via the 'nextLink' property within Power Automate.

I'm using the "List resources by subscription" ARM action:
Capture1.JPG


Once ARM gets the first set of resources, I get the nextLink property
Capture1_1.JPG

and then create an HTTP action. But I can't seem to find where I can pull the Authorization Bearer info from. Unless I'm mistaken, I need to add a header to the HTTP action with

Authentication       Bearer ey(and so on)

Capture2.JPG


The REST API test for Resources - List displays the Bearer token.

https://docs.microsoft.com/en-us/rest/api/resources/resources/list#code-try-0
Capture3.JPG


Or am I trying to process the "nextLink" property incorrectly?

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @TWeiss ,

     

    An easy way - use Pagination instead of using next link.

    vxiaochenmsft_0-1661764101396.png

     

    Best Regards,

    Wearsky

  • TWeiss Profile Picture
    16 on at

    I had done that, but not processing the nextLink manually the full output leaves out some info I was previously ingesting - namely the statusCode and some header properties.

     

    Output when NOT using pagination:
    Capture5.JPG
    Output when using pagination:
    Capture6.JPG

    Why is it that only the body is returned and others like statusCode and headers are removed when pagination is turned on?

     

    I'd be interested in knowing if there was a way of pulling the token out somehow (or properly processing nextLink) without resorting to having to register an App within Azure AD.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard