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

Bias Types:
⚠️ windows_first
⚠️ powershell_heavy
Summary:
The documentation generally maintains cross-platform parity, but there is a subtle Windows bias in the ordering of examples and references. Specifically, in the section on obtaining managed identity tokens within Batch nodes, the PowerShell (Windows) example is presented before the Bash (Linux) example. Additionally, the reference link for the Azure Instance Metadata Service points to the Windows-specific documentation. However, both Windows and Linux examples are present, and the overall content does not omit Linux instructions or tools.
Recommendations:
  • Present Linux and Windows examples in parallel or alternate the order to avoid always listing Windows first.
  • Use neutral or combined documentation links (e.g., a general Instance Metadata Service page, or both Windows and Linux links).
  • Ensure that any code samples, tips, or references that are platform-specific are clearly labeled and that Linux is given equal prominence.
  • Consider adding explicit notes about cross-platform support where relevant, to reassure users of Linux parity.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-08-17 00:01 #83 in_progress ✅ Clean
2025-07-13 21:37 #48 completed ✅ Clean
2025-07-09 13:09 #3 cancelled ✅ Clean
2025-07-08 04:23 #2 cancelled ❌ Biased

Flagged Code Snippets

var pool = batchClient.PoolOperations.CreatePool( poolId: "myPool", virtualMachineSize: "STANDARD_D2_V2", cloudServiceConfiguration: new CloudServiceConfiguration(osFamily: "4"), targetDedicatedNodes: 1, identity: new PoolIdentity( type: PoolIdentityType.UserAssigned, userAssignedIdentities: new Dictionary<string, UserAssignedIdentity> { { "/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identity-name}", new UserAssignedIdentity() } } ));
$Response = Invoke-RestMethod -Uri 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource={Resource App Id Url}' -Method GET -Headers @{Metadata="true"}