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
Please consider replacing Write-Host -Object '[ERROR] ....' -ForegroundColor Red occurrences with Write-Error or similar as Write-Host is not supported by Azure Automation Account runbooks and the error is never displayed or logged.
I spent a couple of hours trying to figure out why Export-M365DSCConfiguration was not creating any file and it was missing a parameter (that was not needed when running it locally).
It would be beneficial to avoid Write-Host altogether.
The text was updated successfully, but these errors were encountered:
Description
Please consider replacing
Write-Host -Object '[ERROR] ....' -ForegroundColor Red
occurrences withWrite-Error
or similar asWrite-Host
is not supported by Azure Automation Account runbooks and the error is never displayed or logged.I spent a couple of hours trying to figure out why
Export-M365DSCConfiguration
was not creating any file and it was missing a parameter (that was not needed when running it locally).It would be beneficial to avoid
Write-Host
altogether.The text was updated successfully, but these errors were encountered: