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_tools
⚠️ missing_linux_example
⚠️ windows_first
Summary:
The documentation exclusively uses Azure PowerShell cmdlets for all instructions and examples, with no mention or examples of equivalent Azure CLI (cross-platform) or Bash commands. It references 'Windows PowerShell' and links to PowerShell-specific resources, implicitly prioritizing Windows tooling and workflows. There are no Linux or macOS-specific instructions or parity examples, and no mention of using the Azure Cloud Shell or Bash, which are common for Linux users.
Recommendations:
  • Provide equivalent Azure CLI (az) command examples alongside or in place of PowerShell cmdlets for each step.
  • Include a section or callout for Linux/macOS users, clarifying that all operations can be performed from Bash or Azure Cloud Shell.
  • Avoid referring to 'Windows PowerShell' unless the instructions are truly Windows-specific; use 'PowerShell' or 'Azure CLI' as appropriate.
  • Link to both PowerShell and Azure CLI installation guides.
  • When referencing external documentation, include links to both PowerShell and CLI management guides.
  • Consider reordering examples or providing tabs for PowerShell and CLI to avoid Windows-first bias.
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 ❌ Biased
2025-07-09 13:09 #3 cancelled ✅ Clean
2025-07-08 04:23 #2 cancelled ❌ Biased

Flagged Code Snippets

New-AzResourceGroup -Name appgw-rg -location "West US"
$subnetconfig = New-AzVirtualNetworkSubnetConfig -Name subnet01 -AddressPrefix 10.0.0.0/24
Select-AzSubscription -Subscriptionid "GUID of subscription"
Connect-AzAccount
$fp = New-AzApplicationGatewayFrontendPort -Name frontendport01 -Port 80
$getgw = Get-AzApplicationGateway -Name appgwtest -ResourceGroupName appgw-rg
Remove-AzApplicationGateway -Name appgwtest -ResourceGroupName appgw-rg -Force
$pool = New-AzApplicationGatewayBackendAddressPool -Name pool01 -BackendIPAddresses 10.1.1.8,10.1.1.9,10.1.1.10
$poolSetting = New-AzApplicationGatewayBackendHttpSettings -Name poolsetting01 -Port 80 -Protocol Http -CookieBasedAffinity Disabled
$fipconfig = New-AzApplicationGatewayFrontendIPConfig -Name fipconfig01 -Subnet $subnet
$listener = New-AzApplicationGatewayHttpListener -Name listener01 -Protocol Http -FrontendIPConfiguration $fipconfig -FrontendPort $fp
$rule = New-AzApplicationGatewayRequestRoutingRule -Name rule01 -RuleType Basic -BackendHttpSettings $poolSetting -HttpListener $listener -BackendAddressPool $pool
$sku = New-AzApplicationGatewaySku -Name Standard_Small -Tier Standard -Capacity 2
$appgw = New-AzApplicationGateway -Name appgwtest -ResourceGroupName appgw-rg -Location "West US" -BackendAddressPools $pool -BackendHttpSettingsCollection $poolSetting -FrontendIpConfigurations $fipconfig -GatewayIpConfigurations $gipconfig -FrontendPorts $fp -HttpListeners $listener -RequestRoutingRules $rule -Sku $sku
Stop-AzApplicationGateway -ApplicationGateway $getgw
VERBOSE: 9:49:34 PM - Begin Operation: Stop-AzureApplicationGateway VERBOSE: 10:10:06 PM - Completed Operation: Stop-AzureApplicationGateway Name HTTP Status Code Operation ID Error ---- ---------------- ------------ ---- Successful OK ce6c6c95-77b4-2118-9d65-e29defadffb8
VERBOSE: 10:49:34 PM - Begin Operation: Remove-AzureApplicationGateway VERBOSE: 10:50:36 PM - Completed Operation: Remove-AzureApplicationGateway Name HTTP Status Code Operation ID Error ---- ---------------- ------------ ---- Successful OK 055f3a96-8681-2094-a304-8d9a11ad8301
Get-AzApplicationGateway -Name appgwtest -ResourceGroupName appgw-rg
VERBOSE: 10:52:46 PM - Begin Operation: Get-AzureApplicationGateway Get-AzureApplicationGateway : ResourceNotFound: The gateway doesn't exist.
$gipconfig = New-AzApplicationGatewayIPConfiguration -Name gatewayIP01 -Subnet $subnet
$vnet = New-AzVirtualNetwork -Name appgwvnet -ResourceGroupName appgw-rg -Location "West US" -AddressPrefix 10.0.0.0/16 -Subnet $subnetconfig
$subnet = $vnet.subnets[0]
Get-AzSubscription