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:
⚠️ windows_first
⚠️ powershell_heavy
Summary:
The documentation provides both Azure CLI and PowerShell examples for policy creation and assignment, but PowerShell (a Windows-centric tool) is given equal or greater prominence, including full command blocks and parameter explanations. There are no explicit Linux shell (bash) examples, and PowerShell is referenced as a primary method for retrieving resource IDs and performing assignments. This may create a perception of Windows/PowerShell preference, especially for users on Linux or macOS.
Recommendations:
  • Add explicit bash shell examples for all Azure CLI commands, demonstrating usage in a Linux environment.
  • Clarify that Azure CLI commands are cross-platform and can be run in bash, zsh, or other Linux shells, not just Windows Command Prompt or PowerShell.
  • Where PowerShell is used to retrieve resource IDs or manipulate output, provide equivalent bash/CLI pipelines (e.g., using jq or grep/awk) for Linux users.
  • Consider reordering examples to present Azure CLI (which is cross-platform) before PowerShell, or clearly label both as equally supported.
  • Add a brief section or note highlighting that all operations can be performed from Linux/macOS using Azure CLI, and link to relevant setup guides.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-07-12 23:44 #41 in_progress ❌ Biased
2025-07-12 00:58 #8 cancelled ✅ Clean
2025-07-10 05:06 #7 processing ✅ Clean
2025-07-09 23:22 #6 cancelled ✅ 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