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
Summary
The documentation provides both Bash and PowerShell examples for querying logs via Azure CLI, but PowerShell examples are consistently shown after Bash. However, there is a subtle Windows bias in the variable assignment example: the Bash example uses 'SET', which is a Windows CMD command, not standard Bash ('export' or variable assignment with '=' is typical in Bash). Additionally, PowerShell examples are present throughout, and the use of 'Invoke-AzOperationalInsightsQuery' is a Windows PowerShell-specific tool, with no mention of Linux/macOS alternatives for querying logs outside of Azure CLI. The Azure Portal instructions are platform-neutral.
Recommendations
  • Correct the Bash variable assignment to use standard Bash syntax (e.g., WORKSPACE_ID=<WORKSPACE_ID> or export WORKSPACE_ID=<WORKSPACE_ID>) instead of 'SET', which is a Windows CMD command.
  • Clarify that PowerShell examples are for Windows users, and Bash examples are for Linux/macOS users.
  • If possible, provide examples using cross-platform tools (e.g., curl, jq) for querying logs, especially for Linux/macOS users.
  • Explicitly state platform applicability for each example to reduce ambiguity.
  • Consider providing a table or note summarizing command differences between platforms.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-12 00:00 #99 completed Biased Biased
2026-01-11 06:20 #98 completed Biased Biased
2026-01-10 00:00 #92 completed Biased Biased
2026-01-06 22:28 #78 completed Clean Clean
2025-12-29 18:00 #48 cancelled Biased Biased
2025-12-15 00:00 #7 completed Clean Clean
2025-12-14 05:05 #6 completed Clean Clean

Flagged Code Snippets