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
Summary
The documentation provides language examples for C#, JavaScript, Python, Java, and PowerShell. PowerShell is included as a first-class example, which is primarily a Windows-centric shell and scripting language. There is a specific note about PowerShell support and SDKs, but there are no equivalent notes or guidance for Bash, sh, or other Linux-native shells. No Linux-specific tools or patterns are mentioned. The inclusion of PowerShell as a main example and the absence of Linux shell examples or guidance indicates a Windows bias.
Recommendations
  • Add equivalent examples using Bash or other Linux-native shells if shell scripting examples are relevant.
  • If PowerShell is included due to its cross-platform support, clarify this and provide Linux installation guidance.
  • Include notes or guidance for Linux users, such as using Azure CLI or Bash for orchestration scripting, where applicable.
  • Balance PowerShell-specific notes with Linux shell or cross-platform scripting notes to avoid the perception of Windows bias.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-12 00:00 #99 completed Biased Biased
2026-01-11 06:20 #98 completed Biased Biased
2026-01-11 00:00 #95 cancelled Clean Clean
2026-01-10 00:00 #92 completed Clean Clean
2026-01-09 00:00 #87 cancelled Clean Clean
2026-01-06 22:28 #78 completed Clean Clean
2025-12-29 18:00 #48 cancelled Biased Biased
2025-12-15 00:00 #7 completed Clean Clean
2025-12-14 05:05 #6 completed Clean Clean
2025-12-14 04:32 #4 completed Clean Clean
2025-12-14 01:50 #3 completed Clean Clean

Flagged Code Snippets

param($Context)

$deviceId = $Context.Input

# Step 1: Create an installation package in blob storage and return a SAS URL.
$sasUrl = Invoke-DurableActivity -FunctionName "CreateInstallationPackage" -Input $deviceId

# Step 2: Notify the device that the installation package is ready.
$deviceInfo = @{
    id = $deviceId
    url = $sasUrl
}
Invoke-DurableActivity -FunctionName "SendPackageUrlToDevice" -Input $deviceInfo

# Step 3: Wait for the device to acknowledge that it has downloaded the new package.
Start-DurableExternalEventListener -EventName "DownloadCompletedAck"

# Step 4: ...
param($Context)

$deviceIds = Invoke-DurableActivity -FunctionName "GetNewDeviceIds"

# Run multiple device provisioning flows in parallel
$provisioningTasks = @()
for ($i = 0; $i -lt $deviceIds.Count; $i++) {
    $deviceId = $deviceIds[$i]
    $childId = "$($Context.InstanceId):$i"
    $provisionTask = Invoke-DurableSubOrchestrator `
        -FunctionName "DeviceProvisioningOrchestration" `
        -Input $deviceId `
        -InstanceId $childId `
        -NoWait
    $provisioningTasks += $provisionTask
}

Wait-DurableTask -Task $provisioningTasks

# ...