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
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.
Create pull request
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')