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 and PowerShell. All command-line examples use Azure PowerShell cmdlets, with no mention or examples of Azure CLI (which is cross-platform and preferred on Linux/macOS) or ARM templates. The prerequisites and instructions reference Windows PowerShell and related tools exclusively. There are no Linux shell, Bash, or Azure CLI equivalents provided, nor any guidance for users on non-Windows platforms.
Recommendations:
- Provide equivalent Azure CLI (az) command examples alongside or in place of PowerShell examples, as Azure CLI is cross-platform and widely used on Linux and macOS.
- Include a section or callout for Linux/macOS users, clarifying that all steps can be performed using Azure CLI and linking to relevant CLI documentation.
- Avoid language that assumes the user is on Windows or using PowerShell (e.g., 'switch PowerShell mode'), or at least provide parallel instructions for Bash/CLI environments.
- Consider including ARM/Bicep template examples for users who prefer declarative infrastructure-as-code approaches, which are platform-agnostic.
- Update the prerequisites to mention both Azure PowerShell and Azure CLI, with links to installation instructions for all major platforms.
Create pull request
Flagged Code Snippets
Select-AzSubscription -Subscriptionid "GUID of subscription"
New-AzResourceGroup -Name appgw-rg -location "West US"
$subnetconfig = New-AzVirtualNetworkSubnetConfig -Name subnet01 -AddressPrefix 10.0.0.0/24
$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
$rule = New-AzApplicationGatewayRequestRoutingRule -Name rule01 -RuleType Basic -BackendHttpSettings $poolSetting -HttpListener $listener -BackendAddressPool $pool
$getgw = Get-AzApplicationGateway -Name appgwtest -ResourceGroupName appgw-rg
$fipconfig = New-AzApplicationGatewayFrontendIPConfig -Name fipconfig01 -Subnet $subnet
$getgw = Get-AzApplicationGateway -Name appgwtest -ResourceGroupName appgw-rg
Select-AzSubscription -Subscriptionid "GUID of subscription"
$gipconfig = New-AzApplicationGatewayIPConfiguration -Name gatewayIP01 -Subnet $subnet
$poolSetting = New-AzApplicationGatewayBackendHttpSettings -Name poolsetting01 -Port 80 -Protocol Http -CookieBasedAffinity Disabled
Stop-AzApplicationGateway -ApplicationGateway $getgw
$sku = New-AzApplicationGatewaySku -Name Standard_Small -Tier Standard -Capacity 2
Get-AzApplicationGateway -Name appgwtest -ResourceGroupName appgw-rg
VERBOSE: 10:52:46 PM - Begin Operation: Get-AzureApplicationGateway
Get-AzureApplicationGateway : ResourceNotFound: The gateway doesn't exist.