Closed
Description
Describe the bug
Invoke-MgGraphRequest
fails to return a number of resources when $count
is used as a URI segment.
PS> $uri = 'https://graph.microsoft.com/v1.0/applications/$count'
PS> invoke-mggraphrequest -Uri $uri -Headers @{consistencylevel='eventual'}
ERROR: Invoke-MgGraphRequest: Request returned Non-Json response of Detect, Please specify '-OutputFilePath'
Expected behavior
The command outputs an integer value (a number of resources).
How to reproduce
PS> $uri = 'https://graph.microsoft.com/v1.0/applications/$count'
PS> invoke-mggraphrequest -Uri $uri -Headers @{consistencylevel='eventual'}
ERROR: Invoke-MgGraphRequest: Request returned Non-Json response of Detect, Please specify '-OutputFilePath'
SDK Version
2.20.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_