On PS 7.3.5, Graph and Graph Beta modules version 2.11.1 work as expected.
On PS 7.4 Graph and Graph Beta modules version 2.1.0 work as expected
On PS 7.4 Graph and Graph Beta modules version 2.11.0 and version 2.11.1 fails on any Invoke-MgGraphRequest command, but corresponding -Mg cmdlets work as expected. This was with and without Set-StrictMode -Off.
On PS 5.1 Graph and Graph Beta modules version 2.1.0 - 2.11.1 work as expected.
Execute Invoke-GraphRequest or Invoke-MgGraphRequest with Microsoft.Graph.Beta version 2.11.1 in PowerShell 7.4
See error format-default: Object reference not set to an instance of an object.
Expected behavior
Values of the query returned.
Debug Output
Run the problematic command with -Debug and paste the resulting debug stream below.
⚠ ATTENTION: Be sure to remove any sensitive information that may be in the logs.
Module Version
Please run Get-Module Microsoft.Graph* after cmdlet execution and paste the output below.
Microsoft.Graph.Beta 2.11.1
Environment Data
Please run $PSVersionTable and paste the output below. If running the Docker container image, indicate the tag of the image used and the version of Docker engine.
Major Minor Patch PreReleaseLabel BuildLabel
----- ----- ----- --------------- ----------
7 4 0
Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:
Describe the bug
To Reproduce Steps to reproduce the behavior:
Invoke-GraphRequest
orInvoke-MgGraphRequest
withMicrosoft.Graph.Beta version 2.11.1
in PowerShell 7.4format-default: Object reference not set to an instance of an object.
Expected behavior
Debug Output
Module Version
Environment Data