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_first
⚠️ missing_linux_example
Summary:
The documentation page demonstrates a Windows bias by providing all command-line examples and automation scripts in PowerShell syntax, which is native to Windows. There are no Bash or Linux shell equivalents, and the scripting patterns (such as function definitions and parameter handling) are tailored to PowerShell users. This may disadvantage Linux or macOS users who are more familiar with Bash or sh scripting environments.
Recommendations:
  • Provide equivalent Bash shell scripts for all PowerShell examples, especially for the main automation function.
  • Include notes or sections clarifying that the Azure CLI commands work cross-platform, and show usage in both Windows (PowerShell) and Linux/macOS (Bash).
  • When presenting scripts, alternate the order or provide tabs for both PowerShell and Bash to avoid Windows-first bias.
  • Ensure that cleanup and setup instructions are shown in both PowerShell and Bash syntax.
  • Explicitly mention that the Azure CLI is cross-platform and provide installation or usage tips for Linux/macOS users.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-07-12 23:44 #41 in_progress ❌ Biased
2025-07-12 00:58 #8 cancelled ✅ Clean
2025-07-10 05:06 #7 processing ✅ Clean

Flagged Code Snippets

# Create an Arc-enabled AKS cluster on an edge zone function createArcEnabledAksOnEz { param( [string] $SubscriptionId, [string] $AKSClusterResourceGroupName, [string] $location = "westus", [string] $AKSName, [string] $edgeZone, [int] $nodeCount = 2, [string] $vmSize = "standard_nv12ads_a10_v5", [string] $ArcResourceGroupName, [switch] $Debug ) # Set the subscription az account set --subscription $SubscriptionId # Login to Azure az provider register --namespace Microsoft.AzureArcData # Create new resource group az group create --name $AKSClusterResourceGroupName --location $location # Create new cluster and deploy in edge zone Write-Output "Creating AKS cluster in edge zone..." az aks create -g $AKSClusterResourceGroupName -n $AKSName --location $location --edge-zone $edgeZone --node-count $nodeCount -s $vmSize --generate-ssh-keys # Create new resource group for Arc az group create --name $ArcResourceGroupName --location eastus # Download cluster credentials and get AKS cluster context az aks get-credentials --resource-group $AKSClusterResourceGroupName --name $AKSName --overwrite-existing # Connect the AKS cluster to Arc $CLUSTER_NAME = "$ArcResourceGroupName-cluster" # Name of the connected cluster resource Write-Output "Connecting AKS cluster to Azure Arc..." az connectedk8s connect --resource-group $ArcResourceGroupName --name $CLUSTER_NAME # DEBUG: Test connection to Arc if ($Debug) { Write-Debug az connectedk8s show --resource-group $ArcResourceGroupName --name $CLUSTER_NAME } } createArcEnabledAksOnEz -SubscriptionId "ffc37441-49e9-4291-a520-0b2d4972bb99" ` -AKSClusterResourceGroupName "t1" ` -location "westus" ` -AKSName "my-aks-cluster" ` -edgeZone "losangeles" ` -nodeCount 2 ` -vmSize "standard_nv12ads_a10_v5" ` -ArcResourceGroupName "t2"