My colleague Oleksandr Nikolaev has found out how to add colors to the PowerShell logs on Azure DevOps. In addition to this, it is also possible to make log groupings.
Please find examples below:
Write-Host "##[group]Beginning of a group"
Write-Host "##[warning]Warning message"
Write-Host "##[error]Error message"
Write-Host "##[debug]Debug text"
Write-Host "##[command]Command-line being run"
Write-Host "##[endgroup]"
![](https://vmoskalenkoblog.wordpress.com/wp-content/uploads/2022/09/image.png?w=942)
![](https://vmoskalenkoblog.wordpress.com/wp-content/uploads/2022/09/image-1.png?w=905)