Sad Tux - Windows bias detected
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

Detected Bias Types
powershell_heavy
windows_first
windows_tools
missing_linux_example
Summary
The documentation page demonstrates a Windows bias by prioritizing Windows-based examples and tools. The only detailed code samples are in C# using the Batch .NET library, which is most commonly used on Windows. The .NET example for pool creation uses a Windows Server image, and there are no equivalent Linux-focused .NET code samples. While the REST API example uses Ubuntu, there are no Linux shell, Bash, or cross-platform scripting examples. The GitHub sample project is a C# console application, further reinforcing the Windows/.NET focus. There is no mention of Linux-specific tools, shell commands, or cross-platform SDKs (e.g., Python, CLI).
Recommendations
  • Add Linux-focused .NET code samples, e.g., using an Ubuntu image in the VirtualMachineConfiguration section.
  • Provide equivalent examples using the Azure Batch Python SDK, which is widely used on Linux.
  • Include Bash or shell command examples for common operations (e.g., using Azure CLI to create pools and tasks).
  • Mention and link to cross-platform tools (such as Azure CLI and Python SDK) alongside or before Windows/.NET tools.
  • Ensure that code snippets and sample projects are available in multiple languages and platforms, not just C#/.NET.
  • Explicitly state that Azure Batch supports both Windows and Linux nodes, and provide parity in documentation examples.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-14 00:00 #250 in_progress Clean Clean
2026-01-13 00:00 #246 completed Clean Clean
2026-01-12 00:00 #243 cancelled Clean Clean
2026-01-11 00:00 #240 completed Clean Clean
2026-01-10 00:00 #237 completed Clean Clean
2026-01-09 00:34 #234 completed Clean Clean
2026-01-08 00:53 #231 completed Clean Clean
2026-01-06 18:15 #225 cancelled Clean Clean
2025-08-17 00:01 #83 cancelled Clean Clean
2025-07-13 21:37 #48 completed Clean Clean
2025-07-09 13:09 #3 cancelled Clean Clean
2025-07-08 04:23 #2 cancelled Biased Biased

Flagged Code Snippets

CloudPool pool =
    batchClient.PoolOperations.CreatePool(
        poolId: "mypool",
        targetDedicatedComputeNodes: 4
        virtualMachineSize: "standard_d1_v2",
        VirtualMachineConfiguration: new VirtualMachineConfiguration(
            imageReference: new ImageReference(
                                publisher: "MicrosoftWindowsServer",
                                offer: "WindowsServer",
                                sku: "2019-datacenter-core",
                                version: "latest"),
            nodeAgentSkuId: "batch.node.windows amd64");

pool.TaskSlotsPerNode = 4;
pool.TaskSchedulingPolicy = new TaskSchedulingPolicy(ComputeNodeFillType.Pack);
pool.Commit();