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:
⚠️ powershell_heavy
⚠️ windows_first
⚠️ missing_linux_example
Summary:
The documentation provides detailed PowerShell examples and references, with C# and Azure CLI also mentioned. However, there are no explicit Linux shell (bash/curl) examples, and PowerShell is presented before Azure CLI. This order and the lack of Linux-native command-line examples may disadvantage Linux users or those preferring bash scripting.
Recommendations:
  • Add bash/curl examples for retrieving HTTP headers, especially for the 'x-ms-ratelimit-remaining-*' headers, to show Linux users how to access this information.
  • Present Azure CLI examples before or alongside PowerShell examples, as Azure CLI is cross-platform and more commonly used on Linux.
  • Explicitly mention that Azure CLI commands work identically on Linux, macOS, and Windows.
  • Where C# is shown, consider adding Python or other cross-platform language examples.
  • Review linked resources (such as the referenced PowerShell script) for similar bias and provide Linux alternatives if needed.
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

$r = Invoke-WebRequest -Uri https://management.azure.com/subscriptions/{guid}/resourcegroups?api-version=2016-09-01 -Method GET -Headers $authHeaders $r.Headers["x-ms-ratelimit-remaining-subscription-reads"]
Get-AzResourceGroup -Debug
New-AzResourceGroup -Name myresourcegroup -Location westus -Debug