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
windows_first
missing_linux_example
windows_tools
Summary
The documentation page demonstrates a Windows bias, especially in the 'readEnvironmentVariable' section. All examples for setting environment variables use PowerShell syntax and reference .NET/Windows APIs. There are no examples for Linux or macOS shells (e.g., Bash), and Windows methods are mentioned exclusively and first. This may confuse or exclude users working on non-Windows platforms.
Recommendations
  • Add equivalent examples for setting environment variables in Bash (Linux/macOS), e.g., export testEnvironmentVariable="Hello World!".
  • Mention both Windows (PowerShell/CMD) and Linux/macOS (Bash/Zsh) methods for setting environment variables, and present them together or in parallel sections.
  • Reference cross-platform documentation for environment variables, not just Windows/.NET APIs.
  • Clarify that Bicep and its parameter files are cross-platform and that environment variable handling depends on the user's OS/shell.
  • Where possible, avoid assuming PowerShell as the default shell; provide parity for Linux/macOS users.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-12 00:00 #99 completed Biased Biased
2026-01-11 06:20 #98 completed Biased Biased
2026-01-10 00:00 #92 completed Clean Clean
2026-01-09 00:00 #87 cancelled Clean Clean
2026-01-06 22:28 #78 completed Clean Clean
2025-12-29 18:00 #48 cancelled Biased Biased
2025-12-15 00:00 #7 completed Clean Clean
2025-12-14 05:05 #6 completed Clean Clean

Flagged Code Snippets

$env:testEnvironmentVariable = "Hello World!"
[System.Environment]::SetEnvironmentVariable('testEnvironmentVariable','Hello World!', 'User')
[System.Environment]::SetEnvironmentVariable('testEnvironmentVariable','Hello World!', 'Machine')