PowerShell utilities for the Microsoft Graph REST API.
pt.EntraGraphUtils provides general-purpose functions for interacting with the
Microsoft Graph API, with support for JSON batching, automatic retry/rate-limit
handling, auto-pagination, and OData query parameters.
All public commands call Invoke-MgGraphRequest internally and require the
Microsoft.Graph.Authentication module. Connect before calling any command:
Connect-MgGraph -Scopes 'User.Read.All', 'Group.Read.All'| Command | Description |
|---|---|
| Invoke-ptGraphBatchRequest | Execute multiple Graph API requests in a single batch call with automatic retry and pagination |
| Invoke-ptGraphRequest | Execute a single Graph API request with automatic retry and pagination |
| New-ptGraphRequestItem | Build a Graph request item (for batch or individual use) with OData parameter support |
The following internal helper functions are adapted from the Utility.PS project by Jason Thompson (jazuntee), used under the MIT License:
ConvertFrom-QueryStringConvertTo-QueryString
This module uses PlatyPS for help generation.
# First time — generate Markdown from comment-based help
./docs.ps1 -Generate
# After editing function help — refresh Markdown
./docs.ps1 -Update
# Build MAML XML locally
./docs.ps1 -BuildHelpEach exported command must have its own
.mdfile in this folder. A single combined file will produce an empty MAML XML.