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
Summary
The documentation provides both Bash and PowerShell examples for querying logs, but there are several signs of Windows bias: PowerShell examples are always present and sometimes appear before Bash, the Bash examples use 'SET' (a Windows command) instead of 'export' for environment variables, and there is no mention of Linux-specific tools or patterns. Additionally, there are no explicit Linux/macOS instructions or troubleshooting tips, and the CLI sections do not clarify cross-platform differences.
Recommendations
  • Replace 'SET' with 'export' in Bash examples to align with standard Linux/macOS shell usage.
  • Ensure Bash (Linux/macOS) examples are listed before PowerShell (Windows) examples to avoid Windows-first bias.
  • Add explicit notes or troubleshooting tips for Linux/macOS users where command syntax or behavior may differ.
  • Include references to Linux/macOS terminal environments and tools where appropriate.
  • Audit all CLI examples for platform-appropriate syntax and clarify any differences in environment variable usage or command output.
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-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

    $WORKSPACE_ID = "<WORKSPACE_ID>"
    
    SET $WORKSPACE_ID=<WORKSPACE_ID>
    
    $queryResults = Invoke-AzOperationalInsightsQuery -WorkspaceId $WORKSPACE_ID -Query "ContainerAppSystemLogs_CL | where ComponentType_s == 'SpringCloudEureka' | project Time=TimeGenerated, Type=ComponentType_s, Component=ComponentName_s, Message=Log_s | take 5"
    $queryResults.Results
    
    $WORKSPACE_ID = "<WORKSPACE_ID>"
    
    $queryResults = Invoke-AzOperationalInsightsQuery -WorkspaceId $WORKSPACE_ID -Query "ContainerAppSystemLogs | where ComponentType == 'SpringCloudEureka' | project Time=TimeGenerated, Type=ComponentType, Component=ComponentName, Message=Log | take 5"
    $queryResults.Results