This page contains Windows bias

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 Azure PowerShell examples for configuring Service Bus queues and topics as event handlers for Azure Event Grid events. While Azure CLI is cross-platform, the inclusion of Azure PowerShell commands (which are most commonly used on Windows, despite cross-platform support) and the explicit labeling of 'Azure PowerShell' sections may signal a Windows-centric approach. Additionally, there are no Linux-specific shell examples (e.g., Bash scripts), and PowerShell examples are given equal prominence to CLI, which can be perceived as Windows bias. The documentation does not mention or provide guidance for Linux-native tools or scripting patterns.
Recommendations:
  • Add explicit Bash or shell script examples alongside Azure CLI to demonstrate Linux-native usage patterns.
  • Clarify that Azure CLI commands work identically on Linux, macOS, and Windows, and consider providing sample shell environments or notes for Linux users.
  • If PowerShell is included, note that PowerShell Core is cross-platform, and provide installation or usage notes for Linux users.
  • Consider the order of examples: present Azure CLI (cross-platform) before PowerShell, and make it clear that both are supported on all major OSes.
  • Include troubleshooting or environment setup notes for Linux users where relevant, especially for authentication or identity scenarios.
GitHub Create pull request

Scan History

Date Scan ID Status Bias Status
2025-09-03 00:00 #100 completed ✅ Clean
2025-08-01 00:00 #67 completed ✅ Clean
2025-07-13 21:37 #48 completed ❌ Biased
2025-07-09 13:09 #3 cancelled ✅ Clean
2025-07-08 04:23 #2 cancelled ❌ Biased

Flagged Code Snippets

You can also use the [`az eventgrid topic event-subscription`](/cli/azure/eventgrid/topic/event-subscription) command for custom topics, the [`az eventgrid system-topic event-subscription`](/cli/azure/eventgrid/system-topic/event-subscription) command for system topics, and the [`az eventgrid partner topic event-subscription create`](/cli/azure/eventgrid/partner/topic/event-subscription#az-eventgrid-partner-topic-event-subscription-create) command for partner topics. ### Use Azure PowerShell Use the [New-AzEventGridSubscription](/powershell/module/az.eventgrid/new-azeventgridsubscription) command with `-EndpointType` set to `servicebusqueue` and `-Endpoint` set to `/subscriptions/{AZURE SUBSCRIPTION}/resourceGroups/<RESOURCE GROUP NAME>/providers/Microsoft.ServiceBus/namespaces/<NAMESPACE NAME>/queues/<QUEUE NAME>`. Here's an example:
You can also use the [`New-AzEventGridSystemTopicEventSubscription`](/powershell/module/az.eventgrid/new-azeventgridsystemtopiceventsubscription) command for system topics, and the [`New-AzEventGridPartnerTopicEventSubscription`](/powershell/module/az.eventgrid/new-azeventgridpartnertopiceventsubscription) command for partner topics. ## Service Bus topics You can route events in Event Grid directly to Service Bus topics for command and control messaging scenarios. ### Use Azure portal In the Azure portal, while creating an event subscription, select **Service Bus Topic** as the endpoint type and then click **select an endpoint** to choose a Service Bus topic. :::image type="content" source="./media/handler-service-bus/topic.png" lightbox="./media/handler-service-bus/topic.png" alt-text="Screenshot showing the configuration of a Service Bus topic handler."::: ### Use Azure CLI Use the [`az eventgrid event-subscription create`](/cli/azure/eventgrid/event-subscription) command with `--endpoint-type` set to `servicebustopic` and `--endpoint` set to `/subscriptions/{AZURE SUBSCRIPTION}/resourceGroups/<RESOURCE GROUP NAME>/providers/Microsoft.ServiceBus/namespaces/<NAMESPACE NAME>/topics/<TOPIC NAME>`. Here's an example: