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_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 ID Status Bias Status
2025-08-17 00:01 #83 in_progress ✅ Clean
2025-07-13 21:37 #48 completed ❌ Biased
2025-07-12 23:44 #41 in_progress ❌ 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