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 bash and PowerShell examples for Azure CLI commands, but PowerShell examples are consistently presented immediately after bash, with explicit formatting for PowerShell. There is a note clarifying differences in variable syntax between bash and PowerShell, but no mention of other Linux shells or environments. The documentation does not show exclusive use of Windows tools, but the prominence and parity given to PowerShell may suggest a slight Windows-first bias.
Recommendations
  • Explicitly mention that bash examples work on Linux, macOS, and Windows (via WSL or native bash).
  • Include a brief note about running Azure CLI in native Linux/macOS terminals, not just bash or PowerShell.
  • Consider providing examples for other common shells (e.g., zsh, fish) or clarify that bash syntax is broadly applicable.
  • Ensure that Linux/macOS users are addressed in prerequisites and environment setup sections.
  • Review and balance the order of examples so that Linux-first or cross-platform parity is maintained, rather than consistently listing PowerShell second.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-02-12 00:00 #237 in_progress Clean Clean
2026-02-11 00:00 #233 in_progress Clean Clean
2026-02-10 00:00 #229 completed Clean Clean
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 Biased Biased
2026-01-08 00:00 #84 in_progress Clean Clean
2026-01-06 22:28 #78 completed Clean Clean
2026-01-06 18:40 #75 cancelled Clean Clean
2025-12-29 18:00 #48 cancelled Biased Biased
2025-12-22 00:00 #24 cancelled Clean Clean
2025-12-15 00:00 #7 completed Clean Clean
2025-12-14 05:05 #6 completed Clean Clean

Flagged Code Snippets

# Formatted for PowerShell
az apim api export --api-id my-api --resource-group myResourceGroup `
    --service-name myAPIManagement --export-format OpenApiJsonFile `
    --file-path '/path/to/folder'
# Formatted for PowerShell
$link=$(az apim api export --api-id my-api --resource-group myResourceGroup `
    --service-name myAPIManagement --export-format OpenApiJsonUrl --query properties.value.link `
    --output tsv)
# Formatted for PowerShell
az apic api definition import-specification `
    --resource-group myResourceGroup --service-name myAPICenter `
    --api-id my-api --version-id v1-0-0 `
    --definition-id openapi --format "link" --value '$link' `
    --specification '{"name":"openapi","version":"3.0.2"}'
# Formatted for PowerShell
az apic import-from-apim --service-name <api-center-name> --resource-group <resource-group-name> `
    --apim-name <api-management-name> --apim-resource-group <api-management-resource-group-name> `
    --apim-apis '*'  
# Formatted for PowerShell
az apic import-from-apim --service-name <api-center-name> --resource-group <resource-group-name> `
    --apim-name <api-management-name> --apim-resource-group <api-management-resource-group-name> `
    --apim-apis 'petstore-api'