Skip to content

Should output device log issues with Azure syntax when running on Azure? #5979

Description

Summary

https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash

Logging an error can be done by printing:

##vso[task.logissue type=error]Error Message.

Or warning:

##vso[task.logissue type=warning]Warning Message."

Background and Motivation

My first motivation is that logging an error with output device is only doing "red color" today, and doesn't fail the run. Output device cannot control exit code today, as it's only about "output".

I think it may make sense to log with AzDO syntax when running there.

Activity

  1. added
    state/needs-approval
    on Jul 10, 2025
  2. added
    area/mtp
    on Jul 10, 2025
  3. Evangelink commented on Jul 12, 2025

    @Evangelink
    Member

    As discussed, we probably do not want to have them as error (and so fail the task) but it would make sense that warning and error messages are reported as warning in azdo so they don't go unnoticed.

  4. added a commit that references this issue on May 25, 2026
    4fbc50a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/mtpstate/needs-approval

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions