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 is heavily biased towards Windows by exclusively providing Azure PowerShell examples and instructions, with no mention of Azure CLI, Bash, or Linux-native tooling. All command-line steps use PowerShell cmdlets, and the only installation guidance refers to the Azure PowerShell module. There are no Linux or cross-platform examples, and the workflow assumes a Windows/PowerShell environment throughout.
Recommendations:
  • Add equivalent Azure CLI (az) command examples for each step, as Azure CLI is cross-platform and widely used on Linux and macOS.
  • Include a section or callouts for Bash/shell users, highlighting any differences or prerequisites for running commands on Linux/macOS.
  • Update the 'Before you begin' section to mention both Azure PowerShell and Azure CLI as supported options, with links to installation instructions for each.
  • Where PowerShell-specific features or syntax are used, provide alternative approaches for Bash or shell environments.
  • Ensure that references to 'Using Windows PowerShell' are balanced with references to Azure CLI or Bash usage guides.
  • Consider providing downloadable scripts or templates in both PowerShell and Bash/Azure CLI formats.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-07-12 23:44 #41 in_progress ❌ Biased
2025-07-12 00:58 #8 cancelled ✅ Clean
2025-07-10 05:06 #7 processing ✅ Clean
2025-07-09 23:22 #6 cancelled ✅ Clean

Flagged Code Snippets

Connect-AzAccount
New-AzResourceGroup -Name appgw-rg -location "West US"
$listener = New-AzApplicationGatewayHttpListener -Name listener01 -Protocol Http -FrontendIPConfiguration $fipconfig -FrontendPort $fp
$getgw = Get-AzApplicationGateway -Name appgwtest -ResourceGroupName appgw-rg
Get-AzApplicationGateway -Name appgwtest -ResourceGroupName appgw-rg
$subnetconfig = New-AzVirtualNetworkSubnetConfig -Name subnet01 -AddressPrefix 10.0.0.0/24
Get-AzSubscription
Select-AzSubscription -Subscriptionid "GUID of subscription"
$vnet = New-AzVirtualNetwork -Name appgwvnet -ResourceGroupName appgw-rg -Location "West US" -AddressPrefix 10.0.0.0/16 -Subnet $subnetconfig
$subnet = $vnet.subnets[0]
$gipconfig = New-AzApplicationGatewayIPConfiguration -Name gatewayIP01 -Subnet $subnet
$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
$fp = New-AzApplicationGatewayFrontendPort -Name frontendport01 -Port 80
$fipconfig = New-AzApplicationGatewayFrontendIPConfig -Name fipconfig01 -Subnet $subnet
$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
Remove-AzApplicationGateway -Name appgwtest -ResourceGroupName appgw-rg -Force
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
VERBOSE: 10:52:46 PM - Begin Operation: Get-AzureApplicationGateway Get-AzureApplicationGateway : ResourceNotFound: The gateway doesn't exist.