Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running functions from within VScode, but functional when run directly from terminal #169

Open
ITistheworst opened this issue Aug 2, 2024 · 0 comments

Comments

@ITistheworst
Copy link

On macOS runing pwsh 7 and I'm having some issues with running only if I run via the integrated terminal in VSCode. There seems to be something failing in Invoke-MSGraphOperation.ps1 as I get the following error:

PS > Get-IntuneWin32App -Verbose
VERBOSE: Access token refresh is not required, remaining minutes until expiration: 62
VERBOSE: GET https://graph.microsoft.com/Beta/deviceAppManagement/mobileApps?$filter=isof('microsoft.graph.win32LobApp')
ConvertFrom-Json: /Users/user/.local/share/powershell/Modules/IntuneWin32App/1.4.4/Private/Invoke-MSGraphOperation.ps1:189:79
Line |
 189 |  … ErrorDetails = $ExceptionItem.ErrorDetails.Message | ConvertFrom-Json
     |                                                         ~~~~~~~~~~~~~~~~
     | Cannot bind argument to parameter 'InputObject' because it is null.
PS >

If I run this exact command directly from terminal it works fine. This issue seems to impact all functions that speak to intune. I can't figure out what is different about the vscode context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant