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
⚠️ 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 ID Status Bias Status
2025-08-22 00:01 #88 completed ❌ Biased
2025-07-22 00:01 #57 completed ✅ Clean
2025-07-13 21:37 #48 completed ❌ 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