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
missing_linux_example
windows_tools
Summary
The documentation exhibits a Windows bias by presenting Windows terminology and tools first (e.g., RDP before SSH), providing code examples that default to Windows node agent SKUs, and omitting explicit Linux-specific examples or commands. References to Windows-specific tools and patterns (such as RDP and nodeAgentSkuId for Windows) are more prominent, while Linux equivalents are only mentioned in passing or as secondary options.
Recommendations
  • Provide parallel Linux-focused examples alongside Windows ones, including explicit nodeAgentSkuId values for Linux pools.
  • When listing connection methods, mention SSH (Linux) before or alongside RDP (Windows), or present both equally.
  • Include sample code snippets and REST API request bodies for creating Linux-based pools, not just Windows.
  • Reference Linux tools and workflows (e.g., bash, Linux CLI commands) explicitly in relevant sections.
  • Ensure that all guidance (such as for Packer or image preparation) includes both Linux and Windows links and steps, not just Windows or generic instructions.
  • Avoid defaulting to Windows-specific values (like 'batch.node.windows amd64') in code samples; provide Linux alternatives or clarify how to select the appropriate value.
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 Biased Biased
2025-07-09 13:09 #3 cancelled Clean Clean
2025-07-08 04:23 #2 cancelled Biased Biased

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