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
missing_linux_example
windows_tools
Summary
The documentation demonstrates a Windows bias by consistently mentioning Windows (RDP) before Linux (SSH) when describing how to connect to VMs, providing only Windows-specific .NET SDK code samples (with 'batch.node.windows amd64' as the node agent SKU), and omitting explicit Linux-focused code examples or command-line walkthroughs. Additionally, there is no example of using Linux tools or scripts to create or manage images/pools, and the REST API example does not clarify Linux-specific values for nodeAgentSkuId.
Recommendations
  • Provide parallel Linux-focused code samples (e.g., using 'batch.node.ubuntu' or other Linux nodeAgentSkuId values) alongside Windows examples in SDK and REST API sections.
  • When describing how to connect to VMs, alternate or equally prioritize Linux (SSH) and Windows (RDP) instructions.
  • Include explicit Linux command-line examples (e.g., using Bash/CLI) for preparing VMs, creating snapshots, and images.
  • Clarify the nodeAgentSkuId values for common Linux distributions in REST API and SDK examples.
  • Add references to Linux-specific documentation and tools where appropriate, not just Windows or generic Azure tools.
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

private static VirtualMachineConfiguration CreateVirtualMachineConfiguration(ImageReference imageReference)
{
    return new VirtualMachineConfiguration(
        imageReference: imageReference,
        nodeAgentSkuId: "batch.node.windows amd64");
}

private static ImageReference CreateImageReference()
{
    return new ImageReference(
        virtualMachineImageId: "/subscriptions/{sub id}/resourceGroups/{resource group name}/providers/Microsoft.Compute/images/{image definition name}");
}

private static void CreateBatchPool(BatchClient batchClient, VirtualMachineConfiguration vmConfiguration)
{
    try
    {
        CloudPool pool = batchClient.PoolOperations.CreatePool(
            poolId: PoolId,
            targetDedicatedComputeNodes: PoolNodeCount,
            virtualMachineSize: PoolVMSize,
            virtualMachineConfiguration: vmConfiguration);

        pool.Commit();
    }