Skip to content

Get-MgUserMailFolder cmdlets very spammy in transcript #823

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

Closed
ildjarnisdead opened this issue Aug 16, 2021 · 3 comments · Fixed by #868
Closed

Get-MgUserMailFolder cmdlets very spammy in transcript #823

ildjarnisdead opened this issue Aug 16, 2021 · 3 comments · Fixed by #868
Assignees
Milestone

Comments

@ildjarnisdead
Copy link

ildjarnisdead commented Aug 16, 2021

In the console, Get-MgUserMailFolder is quiet, but in the transcript a lot of INFO noise is generated. Similar with Get-MgUserMailFolderChildFolder.

Get-MgUserMailFolder -UserId $MyUser -All results in the following output in a transcript:

INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
INFO: Microsoft.Graph.PowerShell.Runtime.EventData
AB#10693

@ghost ghost added the ToTriage label Aug 16, 2021
@peombwa
Copy link
Member

peombwa commented Aug 27, 2021

Thanks for surfacing this. I've traced this to how our event handler writes logs to streams for the default case.

getEventData.Print(signal, cancellationToken, Events.Information, id);

We will fix this in our next releases.

@ProgrammingWithDJ
Copy link

Hello @peombwa thanks for looking into it.

I am getting this error aftering running this command Connect-MgGraph and this is the below output I get.

The command is working as expected however I am spammed with Info: Microsoft.Graph.PowerShell.Runtime.EventData

is there any way we can avoid that ?

Connect Success
● CSV file read check

Read CSV file: Success

Number of readings: 2

The following email addresses are already licensed.
test01@abc.onmicrosoft.com

● License grant
Info: Microsoft.Graph.PowerShell.Runtime.EventData
Info: Microsoft.Graph.PowerShell.Runtime.EventData
Info: Microsoft.Graph.PowerShell.Runtime.EventData
Info: Microsoft.Graph.PowerShell.Runtime.EventData
Info: Microsoft.Graph.PowerShell.Runtime.EventData
Info: Microsoft.Graph.PowerShell.Runtime.EventData
Info: Microsoft.Graph.PowerShell.Runtime.EventData
Info: Microsoft.Graph.PowerShell.Runtime.EventData
Info: Microsoft.Graph.PowerShell.Runtime.EventData
Info: Microsoft.Graph.PowerShell.Runtime.EventData

@peombwa
Copy link
Member

peombwa commented Jul 7, 2022

@ProgrammingWithDJ, the issue was fixed by #868. Please update to the latest version of the module - Update-Module Microsoft.Graph.

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

Successfully merging a pull request may close this issue.

3 participants