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 a Windows bias by exclusively creating Windows Server VMs (using the 'win2019datacenter' image) and providing only PowerShell-based IIS installation commands. There are no examples for deploying or configuring Linux VMs, nor instructions for installing a Linux web server (such as Apache or Nginx). The automation and scripting examples for configuring backend servers are Windows-specific, and Linux alternatives are not mentioned.
Recommendations:
- Provide parallel examples for creating Linux VMs (e.g., using Ubuntu or CentOS images) alongside the Windows VM creation steps.
- Include instructions and az vm extension set commands for installing a web server on Linux VMs (such as Apache or Nginx), and for customizing the default web page to show the VM name.
- Clearly label sections as 'Windows example' and 'Linux example' where applicable, or present both options together.
- Avoid assuming PowerShell or Windows-specific tools/scripts; use cross-platform scripting or provide Bash/Linux shell alternatives.
- In the 'Install IIS' section, add a corresponding 'Install Apache/Nginx on Linux' section with appropriate commands.
Create pull request
Flagged Code Snippets
az vm create \
--resource-group CreatePubLBQS-rg \
--name myVM1 \
--nics myNicVM1 \
--image win2019datacenter \
--admin-username azureuser \
--zone 1 \
--no-wait
az vm create \
--resource-group CreatePubLBQS-rg \
--name myVM2 \
--nics myNicVM2 \
--image win2019datacenter \
--admin-username azureuser \
--zone 2 \
--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