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
missing_linux_example
windows_tools
windows_first
Summary
The documentation provides detailed instructions and code samples for enabling diagnostic logs using the Azure Portal and PowerShell, both of which are Windows-centric tools. There are no equivalent CLI or Bash examples for Linux/macOS users, and PowerShell is presented as the only scripting option. This creates a bias toward Windows environments and leaves out Linux-native workflows.
Recommendations
  • Add Azure CLI (az) examples for enabling diagnostic logging, as the Azure CLI is cross-platform and widely used on Linux and macOS.
  • Include Bash shell script examples alongside PowerShell, or at least reference how Linux users can accomplish the same tasks.
  • Explicitly mention that PowerShell Core is cross-platform if retaining PowerShell examples, but still provide native Bash/Azure CLI alternatives.
  • Ensure that documentation sections do not assume a Windows environment by default; present cross-platform options equally or list Linux-friendly methods first where appropriate.
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-12 00:00 #243 cancelled 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 Clean Clean
2026-01-06 18:15 #225 cancelled Clean Clean
2025-08-22 00:01 #88 completed Biased Biased
2025-07-22 00:01 #57 completed Clean Clean
2025-07-13 21:37 #48 completed Biased Biased

Flagged Code Snippets

 # Retrieve the Azure Storage Account information
$storageAccount = Get-AzStorageAccount -ResourceGroupName acctest5097 -Name centraluseuaptclogs

# Initialize arrays to store metric and log settings
$metric = @()
$log = @()

# Configure metric settings
$metric += New-AzDiagnosticSettingMetricSettingsObject -Enabled $true -Category AllMetrics -RetentionPolicyDay 30 -RetentionPolicyEnabled $true

# Configure log settings
$log += New-AzDiagnosticSettingLogSettingsObject -Enabled $true -CategoryGroup allLogs -RetentionPolicyDay 30 -RetentionPolicyEnabled $true

# Create a new diagnostic setting for the specified resource
New-AzDiagnosticSetting -Name 'AppGWForContainersLogs' -ResourceId "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/acctest5097/providers/Microsoft.ServiceNetworking/trafficControllers/myagfc" -StorageAccountId $storageAccount.Id -Log $log -Metric $metric