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 Azure CLI and Azure PowerShell examples for policy creation and assignment, but PowerShell examples are consistently presented after CLI, and PowerShell is highlighted as a primary method for obtaining policy definition IDs. There is no explicit mention of Linux-specific tools or shell environments (e.g., Bash), nor are there examples tailored for Linux users (such as shell scripting or references to Linux package managers). The CLI examples are platform-neutral, but the prominence and detail of PowerShell usage may imply a Windows-centric approach.
Recommendations
  • Explicitly state that Azure CLI commands work on both Windows and Linux/macOS platforms.
  • Add Bash shell script examples for Linux users, especially for file creation and command chaining.
  • Include notes or links about running Azure CLI in native Linux environments, such as Ubuntu or CentOS.
  • Mention installation instructions for Azure CLI and PowerShell on Linux, or link to cross-platform setup guides.
  • Balance the order of examples by sometimes presenting CLI/Bash first, or grouping examples by platform.
  • Clarify that PowerShell Core is cross-platform, and provide examples using pwsh on Linux/macOS if relevant.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-13 06:17 #107 completed Biased Biased
2026-01-12 00:00 #99 completed Biased Biased
2026-01-11 06:20 #98 completed Biased Biased
2026-01-11 00:00 #95 cancelled Clean Clean
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

   New-AzPolicyDefinition -Name 'audit-enforce-jobs-on-automation-hybrid-runbook-workers' -DisplayName 'Audit Enforce Jobs on Automation Hybrid Runbook Workers' -Policy 'AuditAutomationHRWJobExecution.json'
   
   $rgName = Get-AzResourceGroup -Name 'ContosoRG'
   $Policy = Get-AzPolicyDefinition -Name 'audit-enforce-jobs-on-automation-hybrid-runbook-workers'
   New-AzPolicyAssignment -Name 'audit-enforce-jobs-on-automation-hybrid-runbook-workers' -PolicyDefinition $Policy -Scope $rg.ResourceId