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
Summary
The documentation provides both Bash and PowerShell examples for all Azure CLI commands, ensuring cross-platform parity for core tasks. However, in the 'Send requests' section, the Bash example uses standard Linux utilities (seq, xargs, curl), while the PowerShell example uses advanced PowerShell constructs (runspaces, Invoke-WebRequest), which are more complex and less familiar to Linux users. Additionally, the PowerShell examples are always presented after Bash, but the explanations and links for Bash commands are more detailed, with Linux man page links, while the PowerShell section only links to a Microsoft blog. There is a slight bias towards Windows/PowerShell in the complexity and depth of the PowerShell examples, but overall, Linux is well represented.
Recommendations
  • Ensure that the explanations and documentation links for PowerShell commands are as detailed as those for Bash (e.g., link to official PowerShell documentation for each cmdlet used).
  • Consider providing simpler PowerShell alternatives for sending concurrent requests, or note that the Bash example can be run in WSL on Windows for parity.
  • Explicitly mention that all Azure CLI commands work identically on Linux, macOS, and Windows, and that Bash examples can be run in WSL or Git Bash on Windows.
  • Add a short section at the start clarifying that both Bash and PowerShell are supported, and users can choose their preferred shell.
  • Where possible, provide a cross-platform (Python or Node.js) script for sending concurrent requests, to avoid shell-specific complexity.
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-10 00:00 #92 completed Biased Biased
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

Flagged Code Snippets

az containerapp update `
    --name my-container-app `
    --resource-group my-container-apps `
    --min-replicas 1 `
    --max-replicas 10 `
    --scale-rule-name my-http-scale-rule `
    --scale-rule-http-concurrency 1
az containerapp up `
  --name my-container-app `
  --resource-group my-container-apps `
  --location centralus `
  --environment my-container-apps `
  --image mcr.microsoft.com/dotnet/samples:aspnetapp `
  --target-port 8080 `
  --ingress external `
  --query properties.configuration.ingress.fqdn `
az containerapp logs show `
    --name my-container-app `
    --resource-group my-container-apps `
    --type=system `
    --follow=true
$url="<YOUR_CONTAINER_APP_FQDN>"
$Runspace = [runspacefactory]::CreateRunspacePool(1,10)
$Runspace.Open()
1..50 | % {
    $ps = [powershell]::Create()
    $ps.RunspacePool = $Runspace
    [void]$ps.AddCommand("Invoke-WebRequest").AddParameter("UseBasicParsing",$true).AddParameter("Uri",$url)
    [void]$ps.BeginInvoke()
}
az containerapp update `
    --name my-container-app `
    --resource-group my-container-apps `
    --min-replicas 1 `
    --max-replicas 10 `
    --scale-rule-name my-cpu-scale-rule `
    --scale-rule-type cpu `
    --scale-rule-metadata type=Utilization value=<UTILIZATION>
az containerapp update `
    --name my-container-app `
    --resource-group my-container-apps `
    --min-replicas 1 `
    --max-replicas 10 `
    --scale-rule-name my-memory-scale-rule `
    --scale-rule-type memory `
    --scale-rule-metadata type=Utilization value=<UTILIZATION>
    az containerapp show `
        --name my-container-app `
        --resource-group my-container-apps `
        --output yaml > app.yaml
    
    az containerapp update `
      --name my-container-app `
      --resource-group my-container-apps `
      --yaml app.yaml