Azure Pipelines Agent Screenshot

Capture a Windows build agent's desktop to help diagnose a stuck or failing pipeline.

View repository

When a hosted build agent hangs, you can't just remote into it to see what's on screen. Sometimes the missing clue is an unexpected dialog or a process waiting for interaction.

Agent Screenshot adds a task that captures the agent's desktop and attaches the image to the build logs. Use it as a diagnostic step when the desktop is available, then download the logs to inspect the screenshot after the run.

Getting started

Install Agent Screenshot from the Visual Studio Marketplace and add the task to your pipeline. The repository shows an example that runs after failure or cancellation.

Screenshots can contain sensitive information visible on the desktop, so handle the resulting logs accordingly.

GitHub - jessehouwing/azure-pipelines-agent-screenshot: Take a screenshot of the agents desktop
Take a screenshot of the agents desktop. Contribute to jessehouwing/azure-pipelines-agent-screenshot development by creating an account on GitHub.