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:
⚠️
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.
Create pull request
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}