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
powershell_heavy
missing_linux_example
windows_tools
Summary
The documentation provides a PowerShell example for deriving a device key, explicitly referencing Windows, but does not provide equivalent Linux or cross-platform command-line examples (e.g., Bash, OpenSSL, Python). This creates a bias toward Windows users and may hinder Linux users from following the instructions easily.
Recommendations
  • Add a Linux/Bash example for deriving the device key, using common tools like openssl or a Python script.
  • Present both Windows (PowerShell) and Linux (Bash/Python) examples side by side, or use tabbed sections for each platform.
  • Avoid language such as 'On Windows...' unless there is a corresponding 'On Linux...' section.
  • Where possible, use cross-platform tools or scripts, or at least reference them.
  • Explicitly mention that the process can be performed on both Windows and Linux, and provide links to relevant tools or documentation for each.
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-22 00:01 #88 completed Clean Clean
2025-08-17 00:01 #83 cancelled Clean Clean
2025-07-13 21:37 #48 completed Clean Clean
2025-07-12 23:44 #41 cancelled Biased Biased

Flagged Code Snippets

$KEY='PASTE_YOUR_ENROLLMENT_KEY_HERE'
$REG_ID='PASTE_YOUR_REGISTRATION_ID_HERE'

$hmacsha256 = New-Object System.Security.Cryptography.HMACSHA256
$hmacsha256.key = [Convert]::FromBase64String($KEY)
$sig = $hmacsha256.ComputeHash([Text.Encoding]::ASCII.GetBytes($REG_ID))
$derivedkey = [Convert]::ToBase64String($sig)
echo "`n$derivedkey`n"