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 page provides a detailed overview of Bicep file functions but demonstrates bias by only including a PowerShell script example (myscript.ps1) in the 'loadTextContent' section. There are no examples for Linux shell scripts (e.g., .sh files) or references to Linux scripting environments. The deployment script resource uses 'AzurePowerShell' exclusively, with no mention of 'AzureCLI' or cross-platform alternatives. No Linux or cross-platform command-line usage is shown.
Recommendations
  • Include examples that demonstrate loading and deploying Linux shell scripts (e.g., myscript.sh) using the same Bicep functions.
  • Show how to use the 'AzureCLI' deployment script kind in addition to 'AzurePowerShell', with corresponding examples.
  • Explicitly mention that the file functions work with both Windows and Linux file types and encodings.
  • Where possible, provide parallel examples for both Windows (PowerShell) and Linux (Bash) script scenarios.
  • Clarify that the Bicep CLI and file functions are cross-platform, and reference any platform-specific considerations if they exist.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-14 00:00 #250 in_progress Clean Clean
2026-01-13 00:00 #246 completed Clean Clean
2026-01-12 00:00 #243 cancelled Clean Clean
2026-01-11 00:00 #240 completed Clean Clean
2026-01-10 00:00 #237 completed Clean Clean
2026-01-09 00:34 #234 completed Clean Clean
2026-01-08 00:53 #231 completed Clean Clean
2026-01-06 18:15 #225 cancelled Clean Clean
2025-09-11 00:00 #108 completed Clean Clean
2025-08-11 00:00 #77 completed Biased Biased
2025-08-10 00:00 #76 completed Clean Clean
2025-08-09 00:00 #75 completed Clean Clean
2025-07-13 21:37 #48 completed Biased Biased

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: '8.3'
    scriptContent: loadTextContent('myscript.ps1')
    retentionInterval: 'P1D'
  }
}
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: '8.3'
    scriptContent: loadTextContent('myscript.ps1')
    retentionInterval: 'P1D'
  }
}