M365DSC.mgx

2.0.2

Resilient companion for Microsoft.Graph PowerShell. Adds retry, circuit breaker, rate limiting, streaming pagination, batching, and fan-out to any Graph API endpoint.

Minimum PowerShell version

7.6

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name M365DSC.mgx -RequiredVersion 2.0.2

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name M365DSC.mgx -Version 2.0.2

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Thomas Maillo Grome, (c) 2026 Fabien Tschanz. All rights reserved.

Package Details

Author(s)

  • Thomas Maillo Grome Fabien Tschanz

Tags

Microsoft Graph MicrosoftGraph API Azure EntraID Resilience PowerShell Polly Retry RateLimit Batch Delta Throttling Pagination

Cmdlets

Invoke-MgxRequest Invoke-MgxBatchRequest Export-MgxCollection Expand-MgxRelation Set-MgxOption Get-MgxOption Enable-MgxResilience Disable-MgxResilience Get-MgxResilience Get-MgxTelemetry Sync-MgxDelta

PSEditions

Core

Dependencies

Release Notes

v2.0.2
- Fixed an issue where a JSON string body was silently dropped.
- Write responses that carry a collection envelope ({"value":[...]}), as returned by action endpoints such as /directoryObjects/getByIds, are now unwrapped into one object per element, matching GET.
- Added -Debug request/response tracing for every cmdlet: method, URL, headers, body, status, timing and Graph diagnostic headers, per retry attempt.
- Fixed the SdkVersion header, which still announced mgx/0.3.0 on every Graph request. It now follows the module version.
- -Body is now warned about instead of silently ignored on GET, an empty body falls back to {}, and a batch item whose body is not valid JSON fails on its own instead of aborting the batch.

FileList

Version History

Version Downloads Last updated
2.0.4 7 8/11/2026
2.0.3 6 8/9/2026
2.0.2 (current version) 5 8/9/2026
2.0.1 6 8/8/2026
2.0.0 7 8/5/2026