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.
Create pull request
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