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 resolving the 'RequestDisallowedByPolicy' error, but the PowerShell section is given equal prominence to the Azure CLI, and the PowerShell examples use Windows-centric cmdlets. There are no explicit Linux shell (bash) examples or notes about cross-platform usage, and the PowerShell examples assume a Windows environment, which may not be as familiar or available to Linux users.
Recommendations:
  • Add explicit bash/Linux shell examples for querying policy definitions and assignments using Azure CLI, including examples with jq for JSON parsing.
  • Clarify that Azure CLI commands work cross-platform (Windows, Linux, macOS) and are recommended for Linux users.
  • If PowerShell examples are included, mention that PowerShell Core is available on Linux and macOS, or provide equivalent bash commands.
  • Consider listing Azure CLI (bash) examples before PowerShell to avoid a Windows-first impression.
  • Explicitly state that all examples are cross-platform unless otherwise noted, and provide guidance for users on different operating systems.
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

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