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_tools
windows_first
Summary
The documentation exhibits a moderate Windows bias, particularly through the use of PowerShell commands and Azure PowerShell modules in setup instructions, as well as the use of PowerShell-based tasks in CI/CD pipeline examples. Windows-centric tools and patterns (such as AzPowershell, PowerShell@2, and scriptType: 'pscore') are referenced or used by default, even though the workflows are run on Ubuntu runners. There is little to no mention of Linux-native equivalents or alternative shell commands, and Windows/PowerShell tools are often mentioned first or exclusively.
Recommendations
  • Provide equivalent Linux shell (bash/sh) commands alongside PowerShell commands for setup and package installation steps.
  • When showing CI/CD pipeline tasks, include both PowerShell and bash script examples, or use cross-platform shell commands where possible.
  • Avoid using Windows-specific terminology (e.g., 'AzPowershell', 'PowerShell@2') as the default; clarify when these are required and offer alternatives.
  • Explicitly state that the examples are cross-platform, and test/validate all steps on both Windows and Linux runners.
  • For .NET/NUnit examples, show how to install packages and run commands using bash or Linux-native tools, not just PowerShell.
  • When referencing Azure CLI or authentication setup, provide both PowerShell and bash/CLI command options.
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-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-09-11 00:00 #108 completed Clean Clean
2025-08-11 00:00 #77 completed Clean Clean
2025-08-10 00:00 #76 completed Clean Clean
2025-08-09 00:00 #75 completed Clean Clean
2025-08-08 00:00 #74 completed Clean Clean
2025-07-13 21:37 #48 completed Clean Clean
2025-07-12 23:44 #41 cancelled Biased Biased

Flagged Code Snippets

    - task: PowerShell@2
      enabled: true
      displayName: "Install dependencies"
      inputs:
        targetType: 'inline'
        script: 'npm ci'
        workingDirectory: path/to/playwright/folder # update accordingly
          
    - task: AzureCLI@2
      displayName: Run Playwright Test  
        env:
        PLAYWRIGHT_SERVICE_URL: $(PLAYWRIGHT_SERVICE_URL)
        # PLAYWRIGHT_SERVICE_ACCESS_TOKEN: $(PLAYWRIGHT_SERVICE_ACCESS_TOKEN) # Not recommended, use Microsoft Entra ID authentication. 

      inputs:
        azureSubscription: My_Service_Connection # Service connection used to authenticate this pipeline with Azure to use the service
        scriptType: 'pscore'
        scriptLocation: 'inlineScript'
        inlineScript: |
          npx playwright test -c playwright.service.config.ts --workers=20
      addSpnToEnvironment: true
      workingDirectory: path/to/playwright/folder # update accordingly

    - task: PublishPipelineArtifact@1
      displayName: Upload Playwright report
      inputs:
        targetPath: path/to/playwright/folder/playwright-report/ # update accordingly
        artifact: 'Playwright tests'
        publishLocation: 'pipeline'