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
⚠️
windows_tools
Summary:
The documentation demonstrates a strong Windows bias. It exclusively uses Windows Server virtual machines as backend servers and only provides instructions and scripts for installing IIS via PowerShell. There are no examples or guidance for deploying Linux VMs, using Linux-native web servers (such as Apache or Nginx), or installing software via Linux command-line tools. All scripting and automation is shown with PowerShell, with no mention of Bash, Azure CLI, or Linux VM extensions.
Recommendations:
- Provide parallel instructions for creating Linux virtual machines as backend servers, including recommended distributions (e.g., Ubuntu, CentOS).
- Include examples for installing a Linux web server (such as Apache or Nginx) using the Azure Custom Script Extension or cloud-init, with Bash or Azure CLI commands.
- Show how to verify the application gateway using Linux-based web servers, including sample index.html pages.
- Balance PowerShell examples with Azure CLI or Bash equivalents, especially for VM extension installation.
- Explicitly mention that both Windows and Linux VMs are supported as backend pools, and link to relevant Linux documentation.
- Consider reordering or parallelizing instructions so that Windows and Linux options are presented equally, rather than Windows-only or Windows-first.
Create pull request
Flagged Code Snippets
$publicSettings = @{ "fileUris" = (,"https://raw.githubusercontent.com/Azure/azure-docs-powershell-samples/master/application-gateway/iis/appgatewayurl.ps1"); "commandToExecute" = "powershell -ExecutionPolicy Unrestricted -File appgatewayurl.ps1" }
Set-AzVMExtension `
-ResourceGroupName myResourceGroupAG `
-Location eastus `
-ExtensionName IIS `
-VMName myVM1 `
-Publisher Microsoft.Compute `
-ExtensionType CustomScriptExtension `
-TypeHandlerVersion 1.4 `
-Settings $publicSettings
$publicSettings = @{ "fileUris" = (,"https://raw.githubusercontent.com/Azure/azure-docs-powershell-samples/master/application-gateway/iis/appgatewayurl.ps1"); "commandToExecute" = "powershell -ExecutionPolicy Unrestricted -File appgatewayurl.ps1" }
Set-AzVMExtension `
-ResourceGroupName myResourceGroupAG `
-Location eastus `
-ExtensionName IIS `
-VMName myVM1 `
-Publisher Microsoft.Compute `
-ExtensionType CustomScriptExtension `
-TypeHandlerVersion 1.4 `
-Settings $publicSettings