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
⚠️ missing_linux_example
⚠️ powershell_heavy
Summary:
The documentation demonstrates Windows bias primarily by provisioning only Windows Server virtual machines (using the 'win2019datacenter' image) and providing an IIS installation example that exclusively uses PowerShell commands. There are no Linux VM creation examples or instructions for installing a web server on Linux, and the only web server setup shown is for Windows/IIS. This omits guidance for users who wish to use Linux-based backend servers.
Recommendations:
  • Provide parallel examples for creating Linux virtual machines (e.g., using the 'UbuntuLTS' image) alongside the Windows VM examples.
  • Include instructions and sample commands for installing a web server (such as Apache or Nginx) on Linux VMs using the CustomScriptExtension or cloud-init.
  • Present both Windows and Linux options for backend server setup, making it clear that either OS is supported.
  • Where scripts or commands are provided (e.g., for web server installation), offer both PowerShell (for Windows) and Bash/shell (for Linux) equivalents.
  • Explicitly mention that the load balancer works with both Windows and Linux VMs, and link to relevant Linux documentation where appropriate.
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 ✅ Clean
2025-07-12 23:44 #41 in_progress ❌ Biased

Flagged Code Snippets

az vm create \ --resource-group CreatePubLBQS-rg \ --name myVM1 \ --nics myNicVM1 \ --image win2019datacenter \ --admin-username azureuser \ --availability-set myAvSet \ --no-wait
az vm create \ --resource-group CreatePubLBQS-rg \ --name myVM2 \ --nics myNicVM2 \ --image win2019datacenter \ --admin-username azureuser \ --availability-set myAvSet \ --no-wait
array=(myVM1 myVM2) for vm in "${array[@]}" do az vm extension set \ --publisher Microsoft.Compute \ --version 1.8 \ --name CustomScriptExtension \ --vm-name $vm \ --resource-group CreatePubLBQS-rg \ --settings '{"commandToExecute":"powershell Add-WindowsFeature Web-Server; powershell Add-Content -Path \"C:\\inetpub\\wwwroot\\Default.htm\" -Value $($env:computername)"}' done