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

O365AdminAuditLogConfig: Fails to log exception #4645

Open
ricmestre opened this issue May 8, 2024 · 0 comments · May be fixed by #4646
Open

O365AdminAuditLogConfig: Fails to log exception #4645

ricmestre opened this issue May 8, 2024 · 0 comments · May be fixed by #4646

Comments

@ricmestre
Copy link
Contributor

Description of the issue

If for some reason Set-AdminAuditLogConfig fails then the exception won't be logged since New-M365DSCLogEntry is being called with the parameter Message twice, which will result in error message in the console.

The fix is to just remove one of those Message parameters, I'll raise a PR shortly for this.

Microsoft 365 DSC Version

1.24.424.1

Which workloads are affected

other

The DSC configuration

N/A

Verbose logs showing the problem

N/A

Environment Information + PowerShell Version

N/A
@ricmestre ricmestre changed the title O365AuditAdminLog: Fails to log exception O365AdminAuditLogConfig: Fails to log exception May 8, 2024
@ricmestre ricmestre linked a pull request May 8, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant