-
Notifications
You must be signed in to change notification settings - Fork 211
Description
Describe the bug
In the past months we've had several cases of our Microsoft Graph PS commands not working, for some of them we even opened Microsoft support cases.
We found that returning to version 2.19.0 of Microsoft.Graph always resolves the issue, but we can't stay on this version forever.
The Connect-Graph or Connect-MgGraph command is always executed successfully, but then certain Graph commands (from different submodules) run into a generic error message, which is always the same: "An error occurred while sending the request."
There is no further information provided, even if we run them in verbose mode.
I've began wondering if perhaps there was a change in how the module connects with the M365 tenant, and maybe we need to have our firewall rules adjusted.
Were there any changes after version 2.19.0 in how the module connects?
Is the connection using a different port? Different target IP range?
Expected behavior
The graph commands run without throwing an error
How to reproduce
- Install version 2.20.0 or later of the Graph module on one of our Windows servers
- Run Connect-Graph with a user account or service principal
- Run a graph command that the user account or service principal has permission to run (example: Get-MgApplication or Get-MgUser)
SDK Version
2.20.0, 2.21.0, 2.22.0
Latest version known to work for scenario above?
2.19.0
Known Workarounds
Avoid upgrading from version 2.19.0
Debug output
Click to expand log
```</details>
### Configuration
Name Value
---- -----
PSVersion 5.1.17763.6292
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.6292
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
OS: Microsoft Windows Server 2019 Standard (Build 17763) x64
### Other information
_No response_