You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like there is an issue with writing to the event log.
Write-EventLog : The registry key for the log "M365DSC"for source "MSFT_SPOAccessControlSettings" could not be opened.
At C:\Modules\User\Microsoft365DSC\modules\M365DSCLogEngine.psm1:142 char:9+Write-EventLog-LogName $LogName-Source $Source`+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Write-EventLog], Exception
+ FullyQualifiedErrorId : AccessDenied,Microsoft.PowerShell.Commands.WriteEventLogCommand
A possible solution could be to add a check, if run in Azure Automation like the fixes for #2233
The text was updated successfully, but these errors were encountered:
When running M365DSC Exports within Azure Automation Run Books there are some errors reported, that are cause by M365DSCLogEngine.
The code within the run book is run as administrator.
Looks like there is an issue with writing to the event log.
A possible solution could be to add a check, if run in Azure Automation like the fixes for #2233
The text was updated successfully, but these errors were encountered: