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 detailed instructions for enabling auto forwarding in Azure Service Bus using the Azure portal, Azure CLI, Azure PowerShell, ARM templates, and several programming languages. However, there is a notable Windows bias: PowerShell is given a dedicated section with full examples, and Windows-centric tools (PowerShell) are presented before cross-platform programming language SDKs. There is no mention of Bash scripting or Linux-native automation tools, and the PowerShell section appears before the programming language SDKs, which are cross-platform. The Azure CLI section is present and uses Unix-style line continuations, but there is no explicit mention of Linux or macOS environments, nor are there Bash or shell script examples.
Recommendations:
- Add explicit Bash or shell script examples for common automation scenarios, especially for updating or creating Service Bus resources.
- Clarify in the Azure CLI section that the commands are cross-platform and provide both Windows (using `^` for line continuation) and Linux/macOS (using `\`) variants if necessary.
- Consider adding a section or note on using Azure CLI and SDKs on Linux/macOS, including any prerequisites or differences.
- Reorder the sections so that cross-platform tools (Azure CLI, SDKs) are presented before Windows-specific tools (PowerShell), or at least clarify the cross-platform nature of each tool.
- If possible, mention or link to Linux-native automation options (such as Bash scripts or Ansible modules) for managing Azure Service Bus.
Create pull request
Flagged Code Snippets
## Using Azure PowerShell
To **create a queue with auto forwarding enabled**, use the [`New-AzServiceBusQueue`](/powershell/module/az.servicebus/new-azservicebusqueue) command with `-ForwardTo` set to the name of queue or topic to which you want the messages to be forwarded.
To **update the auto forward setting for an existing queue**, use the [`Set-AzServiceBusQueue`](/powershell/module/az.servicebus/set-azservicebusqueue) command as shown in the following example.