azuredevops-pipelines-logging

Write and debug Azure DevOps pipeline logging commands for variable passing and artifact publishing.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jjjermiah/dotagents --skill azuredevops-pipelines-logging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azuredevops-pipelines-logging
Source: https://github.com/jjjermiah/dotagents/tree/main/src/dot-agents/skills/azuredevops-pipelines-logging
Command: npx skills add https://github.com/jjjermiah/dotagents --skill azuredevops-pipelines-logging

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you write and debug Azure DevOps pipeline logging commands, ensuring reliable script-to-agent signaling, variable passing, and clear log output.

Core Features & Use Cases

  • Correct Command Syntax: Ensures ##vso[...] and ##[...] commands are correctly formatted for YAML/Bash/PowerShell.
  • Variable Management: Troubleshoots output variable scope and secret handling.
  • Log UX: Guides on publishing summaries and artifacts from scripts.
  • Use Case: You're writing a complex Bash script in an Azure Pipeline and need to set a variable that will be used in a subsequent job. This Skill will provide the exact task.setvariable command, including proper escaping and output scope configuration.

Quick Start

Use the azuredevops-pipelines-logging skill to generate the correct bash command for setting an output variable named 'myOutputVar' with the value 'success'.

Frequently Asked Questions about azuredevops-pipelines-logging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set an output variable in Azure DevOps pipelines using Bash or PowerShell?

To set an output variable in Azure DevOps pipelines, use the `##vso[task.setvariable]` logging command with proper syntax and escaping in your Bash or PowerShell script. You must also configure the variable's output scope to ensure it is accessible to subsequent downstream jobs.

What is the correct syntax for Azure DevOps logging commands like `##vso[...]` and `##[...]` in YAML pipelines?

Azure DevOps logging commands use `##vso[...]` for script-to-agent signaling like setting variables and publishing artifacts, and `##[...]` for formatting log output. Correct command formatting and precise escaping are required in YAML pipelines to ensure reliable execution and clear log user experience.

Why is my pipeline output variable not passing to the next job or stage in Azure DevOps?

Output variable scope issues in Azure DevOps pipelines often occur when the `task.setvariable` command lacks the proper output scope configuration. You must explicitly declare the variable as an output variable and reference it correctly in the downstream job or stage to enable cross-job communication.

How do I handle secrets and mask sensitive values in Azure DevOps pipeline logs?

To handle secrets and mask sensitive values in Azure DevOps pipeline logs, use the appropriate `##vso[task.setsecret]` logging command. This ensures the script-to-agent signaling masks the secret value in the log output, preventing accidental exposure while maintaining reliable variable passing.

Can I publish log summaries and artifacts directly from a script in an Azure DevOps pipeline?

Yes, you can publish log summaries and artifacts directly from a script in an Azure DevOps pipeline. By using the correct `##vso[...]` logging commands, you can append markdown summaries to the pipeline run page and upload artifacts, improving the overall log user experience.

What's the best way to troubleshoot Azure DevOps pipeline logging commands that are not working?

The best way to troubleshoot Azure DevOps pipeline logging commands is to verify precise command formatting, check for escaping errors in Bash or PowerShell, and ensure the `##vso[...]` command is correctly structured for script-to-agent signaling to resolve variable passing and log output failures.