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

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 ID Status Bias Status
2025-08-17 00:01 #83 in_progress ✅ Clean
2025-07-13 21:37 #48 completed ❌ Biased
2025-07-09 13:09 #3 cancelled ✅ Clean
2025-07-08 04:23 #2 cancelled ❌ 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