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 page demonstrates a Windows bias by providing only Windows-based examples for both REST API and SDK usage. The sample configurations and code exclusively reference Windows images (e.g., MicrosoftWindowsServer, WindowsServer, batch.node.windows amd64) and Windows-specific properties (windowsConfiguration, enableAutomaticUpdates). There are no examples or guidance for provisioning Linux-based pools, nor are Linux image references or configuration options discussed. The documentation also references Windows Update and in-VM patching in a way that is specific to Windows, without mentioning the Linux equivalents.
Recommendations
  • Add parallel examples for Linux pools, including REST API and SDK (C#) snippets that use Linux image references (e.g., Ubuntu, CentOS) and nodeAgentSkuId values appropriate for Linux.
  • Explicitly document Linux-specific configuration options, such as linuxConfiguration blocks, and discuss any differences in automatic OS upgrade behavior between Windows and Linux.
  • Mention Linux update mechanisms (e.g., package manager updates) where Windows Update is discussed, or clarify if/how automatic upgrades differ for Linux nodes.
  • Ensure that references to image publishers, offers, and SKUs include both Windows and Linux options, and provide guidance for selecting Linux images.
  • Where Windows-specific properties are required (e.g., windowsConfiguration), clarify their Linux equivalents or state when they are not applicable.
GitHub Create Pull Request

Scan History

Date Scan Status Result
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

{
    "name": "test1",
    "type": "Microsoft.Batch/batchAccounts/pools",
    "parameters": {
        "properties": {
            "vmSize": "Standard_d4s_v3",
            "deploymentConfiguration": {
                "virtualMachineConfiguration": {
                    "imageReference": {
                        "publisher": "MicrosoftWindowsServer",
                        "offer": "WindowsServer",
                        "sku": "2019-datacenter-smalldisk",
                        "version": "latest"
                    },
                    "nodePlacementConfiguration": {
                        "policy": "Zonal"
                    },
                    "nodeAgentSKUId": "batch.node.windows amd64",
                    "windowsConfiguration": {
                        "enableAutomaticUpdates": false
                    }
                }
            },
            "scaleSettings": {
                "fixedScale": {
                    "targetDedicatedNodes": 2,
                    "targetLowPriorityNodes": 0
                }
            },
            "upgradePolicy": {
                "mode": "Automatic",
                "automaticOSUpgradePolicy": {
                    "disableAutomaticRollback": true,
                    "enableAutomaticOSUpgrade": true,
                    "useRollingUpgradePolicy": true,
                    "osRollingUpgradeDeferral": true
                },
                "rollingUpgradePolicy": {
                    "enableCrossZoneUpgrade": true,
                    "maxBatchInstancePercent": 20,
                    "maxUnhealthyInstancePercent": 20,
                    "maxUnhealthyUpgradedInstancePercent": 20,
                    "pauseTimeBetweenBatches": "PT0S",
                    "prioritizeUnhealthyInstances": false,
                    "rollbackFailedInstancesOnPolicyBreach": false
                }
            }
        }
    }
}