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:
⚠️ windows_first
⚠️ powershell_heavy
⚠️ windows_tools
Summary:
The documentation provides both Azure CLI and Azure PowerShell examples for deployment, but it consistently presents PowerShell as a primary or co-equal method, which is more closely associated with Windows environments. The introductory deployment step specifically references Azure PowerShell first, and the use of PowerShell cmdlets (e.g., New-AzResourceGroupDeployment) and patterns (e.g., Read-Host, Write-Host) are Windows-centric. There is no mention of Linux-native scripting or shell environments (such as Bash), and the PowerShell examples use Windows-style prompts and conventions. Additionally, the cleanup section contains a mistake: the CLI tab uses a PowerShell command (Remove-AzResourceGroup), which could confuse Linux users.
Recommendations:
  • Ensure that Azure CLI (which is cross-platform and more familiar to Linux users) is presented first in all code examples and instructions.
  • Explicitly mention that both Azure CLI and PowerShell are cross-platform, but highlight that Azure CLI is often preferred in Linux/macOS environments.
  • Provide Bash-native scripting examples (using export, read, etc.) for Linux users, and clarify the shell context for each example.
  • Correct the cleanup section so that the CLI tab uses the correct Azure CLI command (az group delete --name ...), not a PowerShell command.
  • Add a note or section on using the Azure portal and REST API for users who prefer not to use command-line tools.
  • Review prompts and variable handling to ensure parity between PowerShell and Bash/CLI examples, using idiomatic syntax for each.
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
2025-07-12 23:44 #41 in_progress ❌ Biased
2025-07-09 13:09 #3 cancelled ✅ Clean
2025-07-08 04:23 #2 cancelled ✅ Clean

Flagged Code Snippets

$projectName = Read-Host -Prompt "Enter a project name with 12 or less letters or numbers that is used to generate Azure resource names" $location = Read-Host -Prompt "Enter the location (i.e. centralus)" $resourceGroupName = "${projectName}rg" $templateUri = "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.network/internal-loadbalancer-create/azuredeploy.json" New-AzResourceGroup -Name $resourceGroupName -Location $location New-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName -TemplateUri $templateUri -Name $projectName -location $location Write-Host "Press [ENTER] to continue."
# [PowerShell](#tab/PowerShell)
# [PowerShell](#tab/PowerShell)