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 Azure CLI and PowerShell examples for investigating policy errors, but the PowerShell section is more detailed, with additional explanation and advanced usage (e.g., ConvertTo-Json with Depth). There is no mention of Bash scripting or Linux-specific command-line patterns, and the PowerShell section appears after the Azure CLI section, but is more comprehensive. No explicit Linux tools or shell examples are provided.
Recommendations
  • Add Bash shell scripting examples for users on Linux/macOS, especially for parsing JSON output from Azure CLI.
  • Ensure CLI and PowerShell sections are equally detailed, or provide advanced CLI usage (e.g., using jq to parse JSON).
  • Explicitly mention that Azure CLI commands work cross-platform, and provide sample commands for common Linux shells.
  • Consider adding a note or section for troubleshooting using REST API calls with curl, which is common on Linux.
  • Review the PowerShell section to ensure parity with CLI examples, avoiding unnecessary detail imbalance.
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 Clean Clean
2026-01-09 00:00 #87 cancelled Clean Clean
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

$subid = (Get-AzContext).Subscription.Id
$defname = "<policy definition name>"
(Get-AzPolicyDefinition -Id "/subscriptions/$subid/providers/Microsoft.Authorization/policyDefinitions") |
  Where-Object -Property Name -EQ -Value $defname |
    ConvertTo-Json -Depth 10
$rg = Get-AzResourceGroup -Name "<resource group name>"
$assignmentname = "<policy assignment name>"
Get-AzPolicyAssignment -Name $assignmentname -Scope $rg.ResourceId | ConvertTo-Json -Depth 5