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
missing_linux_example
Summary
The documentation provides examples that are heavily oriented toward PowerShell scripts (e.g., .ps1 files, AzurePowerShell deployment scripts) and does not include equivalent examples for Linux shell scripts (e.g., .sh files, Bash). There are no references to Linux tools or patterns, and all script-related examples assume a Windows/PowerShell context. No Linux or cross-platform examples are provided.
Recommendations
  • Add examples that use Bash or shell scripts (e.g., .sh files) alongside PowerShell examples, especially in sections demonstrating script loading.
  • When referencing deployment scripts, include both 'AzurePowerShell' and 'AzureCLI' (with Bash) resource kinds to show parity.
  • Explicitly mention that file paths and encodings are cross-platform, and provide notes or examples for Linux/macOS users.
  • Where possible, alternate the order of examples or provide parallel examples for both Windows and Linux environments.
  • Clarify that Bicep functions work with files created or edited on any OS, and note any OS-specific considerations (such as line endings or file permissions).
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-12 00:00 #99 completed Clean Clean
2026-01-11 06:20 #98 completed 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

Flagged Code Snippets

resource exampleScript 'Microsoft.Resources/deploymentScripts@2023-08-01' = {
  name: 'exampleScript'
  location: resourceGroup().location
  kind: 'AzurePowerShell'
  identity: {
    type: 'UserAssigned'
    userAssignedIdentities: {
      '/subscriptions/{sub-id}/resourcegroups/{rg-name}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{id-name}': {}
    }
  }
  properties: {
    azPowerShellVersion: '14.0'
    scriptContent: loadTextContent('myscript.ps1')
    retentionInterval: 'P1D'
  }
}