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_tools
⚠️
windows_first
Summary:
The documentation provides both Azure CLI and PowerShell examples, but the PowerShell section is prominent and detailed, reflecting a Windows-centric approach. PowerShell is a Windows-native tool (though now cross-platform), and its inclusion before any Linux shell scripting or bash alternatives may signal a Windows-first bias. There are no bash or Linux shell script examples, and no mention of Linux-specific tools or considerations. The CLI examples are cross-platform, but the documentation does not explicitly highlight Linux usage or parity.
Recommendations:
- Add bash or Linux shell script examples alongside PowerShell, especially for automation scenarios.
- Explicitly mention that Azure CLI commands work on Linux, macOS, and Windows, and provide sample terminal prompts (e.g., $ for bash, PS> for PowerShell) to clarify context.
- If PowerShell is included, consider also including bash equivalents for common tasks, or at least reference that PowerShell is available cross-platform.
- In sections where PowerShell is used, add a note or link to guidance for using Azure CLI or bash on Linux.
- Ensure that any references to tools or scripting environments are balanced between Windows and Linux, or clarify their cross-platform support.
Create pull request
Flagged Code Snippets
> [!NOTE]
> If you specify a queue or topic by using the `--forward-dead-lettered-messages-to` parameter, Service Bus automatically forwards dead-lettered messages to that queue or topic. Here's an example: `az servicebus queue create --resource-group mysbusrg --namespace-name mysbusns --name myqueue --enable-dead-lettering-on-message-expiration true --forward-dead-lettered-messages-to myqueue2`.
## Using Azure PowerShell
To **create a queue with dead lettering on message expiration enabled**, use the [`New-AzServiceBusQueue`](/powershell/module/az.servicebus/new-azservicebusqueue) command with `-DeadLetteringOnMessageExpiration` set to `$True`.
To **enable the dead lettering on message expiration setting for an existing queue**, use the [`Set-AzServiceBusQueue`](/powershell/module/az.servicebus/set-azservicebusqueue) command as shown in the following example.