Sad Tux - Windows bias detected
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

Detected Bias Types
powershell_heavy
windows_first
windows_tools
Summary
The documentation provides step-by-step instructions and code samples for managing network policies using the Azure portal, Azure PowerShell, Azure CLI, and ARM templates. PowerShell (a Windows-centric tool) is given a dedicated section with detailed examples, and is listed before the Azure CLI. There are no Linux shell (bash) or cross-platform scripting examples, and the CLI section is less detailed regarding selective policy enablement. The documentation assumes familiarity with PowerShell and Windows tooling, which may disadvantage Linux users.
Recommendations
  • Add bash shell examples for Azure CLI commands, demonstrating usage in a typical Linux environment.
  • Clarify that Azure CLI is cross-platform and can be used on Windows, macOS, and Linux, reducing the perceived need for PowerShell.
  • Consider listing Azure CLI examples before PowerShell, as CLI is more platform-agnostic.
  • Provide notes or links for installing and using Azure CLI on Linux/macOS.
  • Where PowerShell is used, mention cross-platform PowerShell Core if relevant, or clarify OS requirements.
  • Ensure parity in feature explanation between PowerShell and CLI sections, especially regarding selective policy enablement.
GitHub Create Pull Request

Scan History

Date Scan Status Result
2026-01-14 00:00 #250 in_progress Biased Biased
2026-01-13 00:00 #246 completed Biased Biased
2026-01-11 00:00 #240 completed Biased Biased
2026-01-10 00:00 #237 completed Biased Biased
2026-01-09 00:34 #234 completed Biased Biased
2026-01-08 00:53 #231 completed Biased Biased
2026-01-06 18:15 #225 cancelled Clean Clean
2025-08-17 00:01 #83 cancelled Clean Clean
2025-07-13 21:37 #48 completed Biased Biased
2025-07-12 23:44 #41 cancelled Biased Biased

Flagged Code Snippets

$net = @{
    Name = 'myVNet'
    ResourceGroupName = 'myResourceGroup'
}
$vnet = Get-AzVirtualNetwork @net

$sub = @{
    Name = 'default'
    VirtualNetwork = $vnet
    AddressPrefix = '10.1.0.0/24'
    PrivateEndpointNetworkPoliciesFlag = 'Enabled'  # Can be either 'Disabled', 'NetworkSecurityGroupEnabled', 'RouteTableEnabled', or 'Enabled'
}
Set-AzVirtualNetworkSubnetConfig @sub

$vnet | Set-AzVirtualNetwork
$net = @{
    Name = 'myVNet'
    ResourceGroupName = 'myResourceGroup'
}
$vnet = Get-AzVirtualNetwork @net

$sub = @{
    Name = 'default'
    VirtualNetwork = $vnet
    AddressPrefix = '10.1.0.0/24'
    PrivateEndpointNetworkPoliciesFlag = 'Disabled'
}
Set-AzVirtualNetworkSubnetConfig @sub

$vnet | Set-AzVirtualNetwork