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_tools
missing_linux_example
windows_first
Summary
The documentation page demonstrates a Windows bias by exclusively providing PowerShell commands and .NET-specific methods for setting environment variables, without mentioning or providing equivalent Linux/macOS shell commands (such as export or set in Bash). All examples and references for environment variable manipulation are Windows-centric, and there is no guidance for users on non-Windows platforms.
Recommendations
  • Add equivalent Linux/macOS shell examples (e.g., export testEnvironmentVariable="Hello World!") for setting environment variables at process, user, and machine levels where applicable.
  • Mention that the PowerShell/.NET methods are specific to Windows and provide Bash or other shell alternatives for cross-platform parity.
  • Reorder or parallelize the examples so that both Windows and Linux/macOS commands are presented together, rather than Windows first or exclusively.
  • Include a brief note or table summarizing environment variable handling differences across platforms, with links to relevant documentation for each.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2025-07-12 23:44 #41 cancelled Biased Biased
2025-07-12 00:58 #8 cancelled Clean Clean
2025-07-10 05:06 #7 processing Clean Clean

Flagged Code Snippets

using './main.bicep'

param secureUserName = getSecret('exampleSubscription', 'exampleResourceGroup', 'exampleKeyVault', 'exampleSecretUserName')
param securePassword = getSecret('exampleSubscription', 'exampleResourceGroup', 'exampleKeyVault', 'exampleSecretPassword')
$env:testEnvironmentVariable = "Hello World!"
[System.Environment]::SetEnvironmentVariable('testEnvironmentVariable','Hello World!', 'User')
[System.Environment]::SetEnvironmentVariable('testEnvironmentVariable','Hello World!', 'Machine')