r/PowerShell • u/AdeelAutomates • Dec 16 '25
Rest API Explained Part 2 - Advanced Topics with PowerShell on Azure/Graph
In this video, I unpack APIs one step further with Azure/Graph, including:
- Pagination: to collect all data but also why we use pages. (cursor, offset, pages)
- N+1 Patterns: What they mean and why we should avoid them
- Batching: How to batch our APIs so they can be used with a single request
- Status Codes of APIs: How to collect them and what they mean
- Retries: Especially with 429/503 errors, how to run the requests without stopping
- Idempotent: What it means and how it works with PUT methods for ARM API.
Link: https://www.youtube.com/watch?v=5bvDzXOXl-Q
If you have any feedback and ideas, would love to hear them!
Especially for future content you would like to see!
Special thanks to r/powershell for the feedback from the last post!
52
Upvotes
4
u/-Mynster Dec 16 '25
Next up auditing your app registrations application permissions?
I personally just released the first official module release of Leastprivilegedmsgraph.
LinkedIn post from prerelease: https://www.linkedin.com/posts/mortenmynster_powershell-bestsellertech-mggraph-activity-7399416766080204800-dlNL?utm_source=share&utm_medium=member_android&rcm=ACoAACHMLkMB23fOg-wqKD9C0uIVe252G5cWi9Y
PS gallery: https://www.powershellgallery.com/packages/LeastPrivilegedMSGraph
GH pages: https://mynster9361.github.io/Least_Privileged_MSGraph/
Full spam and self promotion but thought it should be broader shared sorry in advance and also awesome video series!
2
u/robodev1 Dec 16 '25
Glad to see you took some topics from the previous comments. Can't wait to watch this video, thank you!
2
u/BlackV Dec 16 '25 edited Dec 17 '25
Oh nice, a follow up, I'll add that to my list
1
u/jr49 Dec 17 '25
just watched the first vid. Using get-azureazaccesstoken is interesting, I haven't tried that before. I try to avoid using modules for the most part when interacting with graph API so I generate my bearer token for app registrations by calling the oauth2/v2.0/token endpoint. Probably more secure using the azureazaccesstoken method.