Paging Teams from the Graph with PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-1177510%22%20slang%3D%22en-US%22%3EPaging%20Teams%20from%20the%20Graph%20with%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1177510%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWriting%20code%20to%20illustrate%20a%20point%20sometimes%20falls%20into%20the%20trap%20that%20things%20don%E2%80%99t%20work%20so%20well%20when%20you%20scale%20things%20up.%20Take%20Graph%20calls%20for%20instance.%20Code%20that%20works%20well%20with%20100%20teams%20isn%E2%80%99t%20so%20good%20with%204%2C000.%20The%20solution%20is%20to%20keep%20on%20telling%20the%20Graph%20to%20fetch%20data%20until%20it%E2%80%99s%20all%20in%20the%20safe%20hands%20of%20PowerShell%2C%20and%20then%20process%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Foffice365itpros.com%2F2020%2F02%2F17%2Fpaging-teams-from-graph-powershell%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foffice365itpros.com%2F2020%2F02%2F17%2Fpaging-teams-from-graph-powershell%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1177510%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1177736%22%20slang%3D%22en-US%22%3ERe%3A%20Paging%20Teams%20from%20the%20Graph%20with%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1177736%22%20slang%3D%22en-US%22%3E%3CP%3EIt's%20almost%20like%20you're%20trying%20to%20say%20that%20my%20solution%20isn't%20perfect%3F!%20The%20audacity...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1177750%22%20slang%3D%22en-US%22%3ERe%3A%20Paging%20Teams%20from%20the%20Graph%20with%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1177750%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3BYou%20provide%20the%20inspiration%20to%20take%20me%20to%20places%20I%20have%20never%20explored...%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
MVP

 

Writing code to illustrate a point sometimes falls into the trap that things don’t work so well when you scale things up. Take Graph calls for instance. Code that works well with 100 teams isn’t so good with 4,000. The solution is to keep on telling the Graph to fetch data until it’s all in the safe hands of PowerShell, and then process it.

 

https://office365itpros.com/2020/02/17/paging-teams-from-graph-powershell/

2 Replies
Highlighted

It's almost like you're trying to say that my solution isn't perfect?! The audacity...

Highlighted

@Vasil Michev You provide the inspiration to take me to places I have never explored...