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
⚠️
missing_linux_example
⚠️
windows_tools
⚠️
windows_first
Summary:
The documentation page demonstrates a significant Windows bias. All command-line examples use Azure PowerShell cmdlets, which are most commonly used on Windows and require PowerShell. There are no examples using Azure CLI (az), which is cross-platform and preferred by many Linux users. The documentation does not mention or provide guidance for Linux or bash users, and the only automation examples are in PowerShell. This may make it harder for Linux administrators to follow or automate these procedures.
Recommendations:
- Add equivalent Azure CLI (az) command examples for all PowerShell scripts, especially for stopping/starting the firewall and assigning public IP addresses.
- Explicitly mention that both PowerShell and Azure CLI can be used, and provide links to both tool documentations.
- Where possible, use neutral, cross-platform terminology and avoid assuming the user is on Windows.
- Include bash shell examples or note any differences in command usage for Linux/macOS environments.
- Consider adding a section or callout for Linux users, highlighting any platform-specific considerations.
Create pull request
Flagged Code Snippets
$azfw = Get-AzFirewall -Name "FW Name" -ResourceGroupName "RG Name"
$azfw.Deallocate()
Set-AzFirewall -AzureFirewall $azfw
$azfw = Get-AzFirewall -Name "FW Name" -ResourceGroupName "RG Name"
$vnet = Get-AzVirtualNetwork -Name "VNet Name" -ResourceGroupName "RG Name"
$pip = Get-AzPublicIpAddress -Name "azfwpublicip" -ResourceGroupName "RG Name"
$mgmtPip = Get-AzPublicIpAddress -Name "mgmtpip" -ResourceGroupName "RG Name"
$azfw.Allocate($vnet, $pip, $mgmtPip)
$azfw | Set-AzFirewall
$azfw = Get-AzFirewall -Name "FW Name" -ResourceGroupName "RG Name"
$vnet = Get-AzVirtualNetwork -Name "VNet Name" -ResourceGroupName "RG Name"
$pip1 = Get-AzPublicIpAddress -Name "azfwpublicip" -ResourceGroupName "RG Name"
$pip2 = Get-AzPublicIpAddress -Name "azfwpublicip2" -ResourceGroupName "RG Name"
$mgmtPip = Get-AzPublicIpAddress -Name "mgmtpip" -ResourceGroupName "RG Name"
$azfw.Allocate($vnet,@($pip1,$pip2), $mgmtPip)
$azfw | Set-AzFirewall