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 shows some Windows bias in the prerequisites section, where Windows and PowerShell options are listed before Linux equivalents, and Windows-specific tooling (PowerShell, Visual Studio Code) is emphasized. However, the main Terraform examples are provided for both Linux and Windows App Service plans, and the implementation steps use Bash commands, which are cross-platform.
Recommendations:
  • List Linux/Bash options before Windows/PowerShell in the prerequisites to avoid 'windows_first' ordering.
  • Ensure that all command-line examples are clearly marked as cross-platform or provide explicit Linux/macOS and Windows (PowerShell/CMD) alternatives where relevant.
  • Mention Linux-native editors (such as Vim, Nano, or VS Code on Linux) alongside Visual Studio Code to avoid the impression of Windows tooling preference.
  • In the prerequisites, clarify that Azure Cloud Shell is available in both Bash and PowerShell, and that both are accessible from any OS.
  • If referencing PowerShell, also reference Bash or other shells for parity, especially in step-by-step instructions.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-08-17 00:01 #83 in_progress ❌ Biased
2025-07-13 21:37 #48 completed ✅ Clean
2025-07-09 13:09 #3 cancelled ✅ Clean
2025-07-08 04:23 #2 cancelled ❌ Biased

Flagged Code Snippets

# Configure the Azure provider terraform { required_providers { azurerm = { source = "hashicorp/azurerm" version = "~>3.0.0" } } } provider "azurerm" { features {} } # Generate a random integer to create a globally unique name resource "random_integer" "ri" { min = 10000 max = 99999 } # Create the resource group resource "azurerm_resource_group" "rg" { name = "rg-${random_integer.ri.result}" location = "eastus" } # Create the Windows App Service Plan resource "azurerm_service_plan" "windows_appserviceplan" { name = "windows-asp-${random_integer.ri.result}" location = azurerm_resource_group.rg.location resource_group_name = azurerm_resource_group.rg.name os_type = "WindowsContainer" sku_name = "P1v3" } # Create the Windows Web App with a container resource "azurerm_windows_web_app" "windows_webapp" { name = "windows-webapp-${random_integer.ri.result}" location = azurerm_resource_group.rg.location resource_group_name = azurerm_resource_group.rg.name service_plan_id = azurerm_service_plan.windows_appserviceplan.id site_config { always_on = true app_command_line = "" application_stack { docker_container_name = "mcr.microsoft.com/dotnet/framework/samples" docker_container_tag = "aspnetapp" } } app_settings = { DOCKER_REGISTRY_SERVER_USERNAME = "" DOCKER_REGISTRY_SERVER_PASSWORD = "" DOCKER_REGISTRY_SERVER_URL = "https://mcr.microsoft.com" WEBSITES_ENABLE_APP_SERVICE_STORAGE = "false" } }