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
Summary:
The documentation provides both Azure CLI and PowerShell examples for managing access restrictions, but PowerShell examples are featured prominently, including in advanced scenarios and inline code blocks. In several places, PowerShell is presented before or alongside Azure CLI, and some advanced examples (such as multi-source rules and Azure Front Door restrictions) are only shown in PowerShell. There are no explicit Linux shell or Bash-specific examples outside of Azure CLI, and the documentation assumes familiarity with PowerShell cmdlets, which are more common in Windows environments.
Recommendations:
- For every PowerShell example, provide an equivalent Azure CLI (bash-friendly) example, especially in advanced scenarios such as multi-source rules and Azure Front Door restrictions.
- When presenting code tabs, consider listing Azure CLI first or at least alternating the order to avoid implicit prioritization of PowerShell.
- Where possible, provide Bash shell script snippets for common tasks, especially for advanced scenarios currently only shown in PowerShell.
- Clarify in the introduction that all programmatic examples are cross-platform when using Azure CLI, and explicitly mention that PowerShell examples are primarily for Windows users.
- Audit all advanced scenario sections to ensure Linux users have parity in example coverage and guidance.
Create pull request
Flagged Code Snippets
### [PowerShell](#tab/powershell)
You can run the following command in [Azure Cloud Shell](https://shell.azure.com). For more information about the command, see [`Add-AzWebAppAccessRestrictionRule`](/powershell/module/Az.Websites/Add-AzWebAppAccessRestrictionRule).
### [PowerShell](#tab/powershell)
You can run the following command in [Cloud Shell](https://shell.azure.com). For more information about the command, see [Add-AzWebAppAccessRestrictionRule](/powershell/module/Az.Websites/Add-AzWebAppAccessRestrictionRule).
### [PowerShell](#tab/powershell)
You can run the following command in [Cloud Shell](https://shell.azure.com). For more information about the command, see [`Set-AzResource`](/powershell/module/az.resources/set-azresource). Accepted values for `ipSecurityRestrictionsDefaultAction` are `Allow` or `Deny`.
### [PowerShell](#tab/powershell)
You can run the following command in [Cloud Shell](https://shell.azure.com). For more information about the command, see [`Set-AzResource`](/powershell/module/az.resources/set-azresource). Accepted values for `scmIpSecurityRestrictionsDefaultAction` are `Allow` or `Deny`.