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
windows_first
powershell_heavy
windows_tools
missing_linux_example
Summary
The documentation page demonstrates a Windows bias in several ways. The primary code sample for the .NET SDK uses a Windows VM image (MicrosoftWindowsServer) and node agent, with no equivalent Linux example provided. The only full code walkthrough is in C#/.NET, which is most commonly used on Windows. The referenced GitHub sample is also a C# console application, reinforcing Windows-centric tooling. Although the REST API example uses Ubuntu, it is less detailed and not accompanied by a Linux-focused SDK sample or workflow. There are no Linux shell or Python examples, and Windows tools and patterns are mentioned first or exclusively throughout the page.
Recommendations
  • Add equivalent .NET SDK code samples for Linux pools (e.g., using Ubuntu images and batch.node.ubuntu agent SKU).
  • Provide Python SDK examples, which are popular on Linux, showing pool creation and task submission with Linux VM images.
  • Include Linux shell (bash) or CLI examples for common operations, such as pool creation and task submission.
  • Reference Linux-focused sample projects on GitHub, or add new ones if they do not exist.
  • When listing VM images in examples, alternate or show both Windows and Linux options.
  • Ensure that REST API examples are as detailed and complete for Linux as for Windows.
  • Mention Linux tools and patterns (e.g., bash scripting, cron jobs) where relevant, not just Windows/PowerShell.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-13 06:17 #107 completed Clean Clean
2026-01-12 00:00 #99 completed Clean Clean
2026-01-11 06:20 #98 completed Clean Clean
2026-01-10 00:00 #92 completed Clean Clean
2026-01-06 22:28 #78 completed Clean Clean
2025-12-29 18:00 #48 cancelled Biased Biased
2025-12-15 00:00 #7 completed Clean Clean
2025-12-14 05:05 #6 completed Clean Clean

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();