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
windows_tools
missing_linux_example
Summary
The documentation demonstrates a Windows bias in several areas: it references enabling managed identities specifically on a Windows VM, provides detailed PowerShell examples for disabling local authentication, and does not provide equivalent Linux shell or cross-platform CLI examples for some operations. The Azure CLI example is present, but PowerShell is given a dedicated section and example, while Linux-specific instructions or screenshots are missing. There is also a lack of explicit Linux or cross-platform guidance for environment variable setup and SDK usage, with examples using Windows-centric tools and patterns.
Recommendations
  • Add explicit Linux/Unix shell (bash) examples for all operations currently shown only in PowerShell, such as creating resources and setting environment variables.
  • When referencing enabling managed identities, provide links and instructions for both Windows and Linux VMs, not just Windows.
  • Ensure screenshots and portal instructions are not Windows-specific, or clarify that the UI is the same across platforms.
  • In code samples that require environment variables (e.g., AZURE_CLIENT_ID), show both Windows (set in PowerShell/cmd) and Linux (export in bash) syntax.
  • Review all tool references to ensure cross-platform parity, and avoid giving Windows tools or patterns prominence over their Linux equivalents.
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

Environment.SetEnvironmentVariable("AZURE_CLIENT_ID", "");
Environment.SetEnvironmentVariable("AZURE_TENANT_ID", "");
Environment.SetEnvironmentVariable("AZURE_CLIENT_SECRET", "");

EventGridPublisherClient client = new EventGridPublisherClient(new Uri("your-event-grid-topic-domain-or-partner-namespace-endpoint"), new DefaultAzureCredential());
Set-AzContext -SubscriptionId <SubscriptionId>

New-AzResource -ResourceGroupName <ResourceGroupName> -ResourceType Microsoft.EventGrid/topics -ApiVersion 2021-06-01-preview -ResourceName <TopicName> -Location <Location> -Properties @{disableLocalAuth=$true}