This page contains Windows bias

About This Page

This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.

Bias Analysis

Bias Types:
⚠️ powershell_heavy
⚠️ windows_first
⚠️ missing_linux_example
⚠️ windows_tools
Summary:
The documentation page demonstrates a strong Windows bias. All code examples use Windows command-line syntax (cmd.exe /c echo ...), with no mention of Linux or cross-platform shell equivalents. The documentation exclusively references Windows tools (cmd.exe), and does not provide any Linux/bash examples or guidance for non-Windows users. There is no mention of how to adapt the task commands or environment for Linux pools, which are common in Azure Batch scenarios.
Recommendations:
  • For every example using Windows command-line syntax (e.g., cmd.exe /c echo ...), provide an equivalent Linux/bash example (e.g., /bin/bash -c 'echo ...').
  • Explicitly mention that Azure Batch supports both Windows and Linux pools, and clarify any differences in task command lines between platforms.
  • When referencing tools or shell environments (such as cmd.exe), provide Linux alternatives (such as /bin/bash) and explain how to select the appropriate shell for the pool OS.
  • Add a section or note about cross-platform considerations, including how to write portable task commands and how to detect the OS of the compute node.
  • Ensure that links to sample code or repositories include Linux examples or instructions for adapting to Linux environments.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-08-17 00:01 #83 in_progress ✅ Clean
2025-07-13 21:37 #48 completed ❌ Biased
2025-07-09 13:09 #3 cancelled ✅ Clean
2025-07-08 04:23 #2 cancelled ❌ Biased

Flagged Code Snippets

// Tasks 1, 2, and 3 don't depend on any other tasks. Because // we will be using them for a task range dependency, we must // specify string representations of integers as their ids. new CloudTask("1", "cmd.exe /c echo 1"), new CloudTask("2", "cmd.exe /c echo 2"), new CloudTask("3", "cmd.exe /c echo 3"), // Task 4 depends on a range of tasks, 1 through 3 new CloudTask("4", "cmd.exe /c echo 4") { // To use a range of tasks, their ids must be integer values. // Note that we pass integers as parameters to TaskIdRange, // but their ids (above) are string representations of the ids. DependsOn = TaskDependencies.OnIdRange(1, 3) },