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 Azure PowerShell examples for policy creation and assignment, but PowerShell examples are given equal prominence and detail as CLI, and PowerShell-specific guidance is included throughout. There are no Linux-specific command-line examples (e.g., Bash scripting), nor is there mention of Linux-native tooling or considerations for Linux users. The documentation assumes familiarity with PowerShell and does not clarify cross-platform support for the provided commands.
Recommendations:
  • Clarify that Azure CLI commands are fully cross-platform and can be run on Windows, macOS, and Linux, while PowerShell examples may require PowerShell Core for cross-platform compatibility.
  • Add explicit Bash shell examples for Linux users where appropriate, especially for file creation and command execution.
  • Note any differences in behavior or prerequisites when running commands on Linux versus Windows (e.g., file paths, authentication methods).
  • Consider reordering examples to present Azure CLI (cross-platform) before PowerShell, or clearly label both as equally supported.
  • Include a brief section or note about running these commands on Linux systems, including installation links for Azure CLI and PowerShell Core.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-08-17 00:01 #83 in_progress ✅ Clean
2025-07-13 21:37 #48 completed ✅ Clean
2025-07-09 13:09 #3 cancelled ✅ Clean
2025-07-08 04:23 #2 cancelled ❌ Biased

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