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 generating an access token, but the PowerShell example is more detailed and comes after the Bash example. Throughout the document, all portal-based instructions and screenshots are platform-agnostic, but there is a subtle Windows bias in the inclusion and detail of the PowerShell example. There are no Linux-specific tools or CLI-based alternatives for steps that could be performed outside the portal, and the PowerShell example may implicitly prioritize Windows users.
Recommendations
  • Ensure that Bash and PowerShell examples are equally detailed and placed in parallel, not with one prioritized over the other.
  • Consider adding Azure CLI examples for steps like app registration, role assignment, and resource creation, which would benefit Linux and cross-platform users.
  • Explicitly mention that all steps can be performed on any OS using the Azure CLI or REST APIs, not just via the Azure Portal or PowerShell.
  • Where possible, provide Linux-specific troubleshooting tips or notes, especially for authentication and token generation.
  • Review screenshots and instructions to ensure they do not assume a Windows environment (e.g., avoid referencing Windows-specific UI elements or terminology).
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-14 00:00 #250 in_progress Biased Biased
2026-01-13 00:00 #246 completed Biased Biased
2026-01-11 00:00 #240 completed Biased Biased
2026-01-10 00:00 #237 completed Biased Biased
2026-01-09 00:34 #234 completed Biased Biased
2026-01-08 00:53 #231 completed Biased Biased
2026-01-06 18:15 #225 cancelled Clean Clean
2025-08-17 00:01 #83 cancelled Clean Clean
2025-07-13 21:37 #48 completed Biased Biased
2025-07-09 13:09 #3 cancelled Clean Clean
2025-07-08 04:23 #2 cancelled Biased Biased

Flagged Code Snippets

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Content-Type", "application/x-www-form-urlencoded")
$body = "grant_type=client_credentials&client_id=<client-id>&client_secret=<application-secret>&resource=https%3A%2F%2Ffarmbeats.azure.net"
$response = Invoke-RestMethod 'https://login.microsoftonline.com/<tenant-id>/oauth2/token' -Method 'POST' -Headers $headers -Body $body
$response | ConvertTo-Json