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:
⚠️ powershell_heavy
⚠️ windows_tools
⚠️ missing_linux_example
⚠️ windows_first
Summary:
The documentation page demonstrates a Windows bias by exclusively providing Azure PowerShell (Windows-centric) command-line examples for deploying templates and by referencing 'AzurePowerShell' in resource definitions. There are no examples using cross-platform tools such as Azure CLI (az), nor are Linux shell or Bash examples provided. Windows tools and patterns are mentioned exclusively, and Linux or cross-platform equivalents are missing.
Recommendations:
  • Add equivalent Azure CLI (az) command examples alongside PowerShell examples for template deployment and parameter passing.
  • When referencing deployment scripts, include examples for both 'AzurePowerShell' and 'AzureCLI' in the 'kind' property to demonstrate parity.
  • Explicitly mention that both PowerShell and CLI are supported, and provide guidance for Linux/macOS users.
  • Where shell commands are shown, provide both PowerShell and Bash (or sh) syntax.
  • Review all examples to ensure that Windows-specific tools or patterns are not presented as the only or primary option.
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 ❌ Biased

Flagged Code Snippets

{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "forceUpdateTag": { "type": "string", "defaultValue": "[newGuid()]" } }, "variables": { "deploymentScriptSharedProperties": { "forceUpdateTag": "[parameters('forceUpdateTag')]", "azPowerShellVersion": "10.1", "retentionInterval": "P1D" } }, "resources": [ { "type": "Microsoft.Resources/deploymentScripts", "apiVersion": "2020-10-01", "name": "escapingTest", "location": "[resourceGroup().location]", "kind": "AzurePowerShell", "properties": "[union(variables('deploymentScriptSharedProperties'), createObject('scriptContent', '$DeploymentScriptOutputs = @{}; $DeploymentScriptOutputs.escaped = \"de''''f\";'))]" } ], "outputs": { "scriptOutput": { "type": "string", "value": "[reference('escapingTest').outputs.escaped]" } } }
{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "languageVersion": "2.0", "contentVersion": "1.0.0.0", "parameters": { "forceUpdateTag": { "type": "string", "defaultValue": "[newGuid()]" } }, "variables": { "deploymentScriptSharedProperties": { "forceUpdateTag": "[parameters('forceUpdateTag')]", "azPowerShellVersion": "10.1", "retentionInterval": "P1D" } }, "resources": { "escapingTest": { "type": "Microsoft.Resources/deploymentScripts", "apiVersion": "2020-10-01", "name": "escapingTest", "location": "[resourceGroup().location]", "kind": "AzurePowerShell", "properties": "[union(variables('deploymentScriptSharedProperties'), createObject('scriptContent', '$DeploymentScriptOutputs = @{}; $DeploymentScriptOutputs.escaped = \"de''f\";'))]" } }, "outputs": { "scriptOutput": { "type": "string", "value": "[reference('escapingTest').outputs.escaped]" } } }