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 the Bash examples use the non-standard 'SET' command for variable assignment, which is a Windows CMD syntax, not valid in Bash or Linux shells. This may confuse Linux users. Additionally, PowerShell examples are always present, and sometimes appear before or alongside Bash, indicating a slight Windows-first approach. There are no Linux-specific instructions or troubleshooting tips, and the CLI examples do not use standard Linux shell conventions.
Recommendations
  • Replace 'SET $WORKSPACE_ID=<WORKSPACE_ID>' in Bash examples with the correct Bash syntax: 'WORKSPACE_ID=<WORKSPACE_ID>'.
  • Ensure Bash/Linux examples use standard shell conventions and are tested in a Linux environment.
  • Consider placing Bash/Linux examples before PowerShell to reflect the prevalence of Linux in containerized/cloud environments.
  • Add Linux-specific notes or troubleshooting tips where relevant.
  • Clarify which examples are for Windows CMD, PowerShell, or Bash, and avoid cross-polluting syntax.
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

    $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