microsoft/Microsoft365DSC

O365AdminAuditLogConfig: Fails to log exception

ricmestre opened this issue · 0 comments

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