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
missing_linux_example
windows_tools
Summary
The documentation demonstrates a clear Windows bias. All code examples are in C# and use Windows-centric command lines (e.g., 'cmd /c'), with no Linux shell equivalents provided. The only virtual machine image example is for Windows Server, and environment variable usage is explained for both platforms, but only Windows command syntax is shown in executable examples. There are no Linux-specific code samples, shell commands, or references to Linux tools or patterns.
Recommendations
  • Provide parallel Linux examples for all code snippets, especially for task command lines (e.g., show both 'cmd /c ...' and '/bin/bash -c ...').
  • Include examples of creating pools with Linux VM images (e.g., Ubuntu) alongside the Windows example.
  • Demonstrate how to reference and execute installed applications on Linux nodes using appropriate shell syntax.
  • Mention Linux-specific considerations (such as file permissions, path separators, and case sensitivity) where relevant.
  • Balance the order of presentation so that Linux and Windows are treated equally (e.g., alternate or combine examples, rather than always presenting Windows first).
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-18 00:00 #266 completed Biased Biased
2026-01-14 00:00 #250 in_progress Biased Biased
2026-01-13 00:00 #246 completed Biased Biased
2026-01-12 00:00 #243 cancelled Biased Biased
2026-01-11 00:00 #240 completed Biased Biased
2026-01-10 00:00 #237 completed Biased Biased
2026-01-09 00:34 #234 completed Biased Biased
2026-01-08 00:53 #231 completed Biased Biased
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 Biased Biased
2025-07-09 13:09 #3 cancelled Clean Clean
2025-07-08 04:23 #2 cancelled Biased Biased

Flagged Code Snippets

// Create the unbound CloudPool
CloudPool myCloudPool =
    batchClient.PoolOperations.CreatePool(
        poolId: "myPool",
        targetDedicatedComputeNodes: 1,
        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");

// Specify the application and version to install on the compute nodes
myCloudPool.ApplicationPackageReferences = new List<ApplicationPackageReference>
{
    new ApplicationPackageReference {
        ApplicationId = "litware",
        Version = "1.1001.2b" }
};

// Commit the pool so that it's created in the Batch service. As the nodes join
// the pool, the specified application package is installed on each.
await myCloudPool.CommitAsync();
CloudTask task =
    new CloudTask(
        "litwaretask001",
        "cmd /c %AZ_BATCH_APP_PACKAGE_LITWARE%\\litware.exe -args -here");

task.ApplicationPackageReferences = new List<ApplicationPackageReference>
{
    new ApplicationPackageReference
    {
        ApplicationId = "litware",
        Version = "1.1001.2b"
    }
};
Windows:
AZ_BATCH_APP_PACKAGE_APPLICATIONID#version
Windows:
AZ_BATCH_APP_PACKAGE_BLENDER#2.7
string taskId = "blendertask01";
string commandLine =
    @"cmd /c %AZ_BATCH_APP_PACKAGE_BLENDER%\blender.exe -args -here";
CloudTask blenderTask = new CloudTask(taskId, commandLine);