Lesstep
Azure Pipelines · Tasks · Checked November 6, 2026

Azure Pipelines: "The current operating system is not capable of running this task": a Windows-only task on a Linux or macOS agent

Every task says in its task.json how the agent runs it: with Node, which works on Windows, Linux and macOS, or with a Windows-only handler such as PowerShell3. When a job on a Linux or macOS agent reaches a task that has only Windows handlers, the agent has nothing it can start and the step fails before the task does anything. Run that job on a Windows agent, or use a version or a task that has a Node handler (a Stack Overflow question on this message has been seen almost 10,000 times).

When this fails a pull request's build validation, the required build stays failed until a run on the right agent passes: Azure DevOps Pull Requests, a plugin for JetBrains IDEs, lists the pull request's branch policies with their state in your IDE, and with Pro runs a failed build policy again once the pipeline is fixed. Get it on JetBrains Marketplace

What it looks like

Is the task Windows-only? Read its task.json

Run the job on Windows

Or use a task that runs anywhere

Telling it apart

Azure DevOps pull requests in IntelliJ IDEA and Rider

Azure DevOps Pull Requests, a plugin by Lesstep for JetBrains IDEs 2024.1 or later and Android Studio, reads the organization, project and repository from your git remote and lists the pull requests that wait for your review in an IDE tool window, on Azure DevOps Services and on Azure DevOps Server. It shows the branch policies of a pull request with their state, so a required build that has not passed is next to its pull request, and with Pro you run a failed or expired build policy again from there. The review inbox is free; voting, commenting, completing and creating are Pro, with a 30-day trial.

Get it on JetBrains Marketplace

Azure DevOps and Azure Pipelines are trademarks of Microsoft Corporation; GitHub is a trademark of GitHub, Inc.; IntelliJ IDEA and Rider are trademarks of JetBrains s.r.o. This page is not affiliated with or endorsed by Microsoft, GitHub, Inc. or JetBrains.

More: no zip where the deploy task looks · no agent in the pool meets the demands · an agent that stopped answering during the job · no Microsoft-hosted parallel job yet · 日本語