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 examples for Azure CLI, Azure PowerShell, and Azure Portal. However, it demonstrates a Windows bias by including extensive PowerShell examples (which are primarily associated with Windows environments) and referencing Azure PowerShell modules, which are more familiar to Windows users. There is no mention of Bash, Linux shell scripting, or cross-platform scripting alternatives. Additionally, PowerShell examples are given equal prominence to CLI examples, and the documentation does not clarify that Azure CLI is cross-platform and preferred for Linux/macOS users. There are no Linux-specific notes or troubleshooting tips.
Recommendations:
- Explicitly mention that Azure CLI is cross-platform and works natively on Linux, macOS, and Windows.
- Add Bash shell scripting examples or notes for Linux users, especially for scripting and automation scenarios.
- Clarify that Azure PowerShell is available cross-platform, but is more familiar to Windows users, and recommend Azure CLI for Linux/macOS users.
- Include troubleshooting tips or environment setup notes for Linux users (e.g., installing Azure CLI on Ubuntu, handling authentication).
- Avoid assuming PowerShell as the default scripting environment; consider reordering sections to present Azure CLI before PowerShell, or add a note explaining the intended audience for each.
- Where screenshots or portal instructions are given, note any differences in experience for Linux/macOS users if applicable.
Create pull request
Flagged Code Snippets
# [Azure PowerShell](#tab/azure-powershell)
1. Set the account to the Azure subscription where you wish to create the system topic.
2. Create a system topic of type `microsoft.resourcenotifications.healthresources` using the [New-AzEventGridSystemTopic](/powershell/module/az.eventgrid/new-azeventgridsystemtopic) command.
# [Azure PowerShell](#tab/azure-powershell)
# [Azure PowerShell](#tab/azure-powershell)
# [Azure PowerShell](#tab/azure-powershell)
Create an event subscription for the above topic using the [New-AzEventGridSystemTopicEventSubscription](/powershell/module/az.eventgrid/new-azeventgridsystemtopiceventsubscription) command.
The following sample command creates an event subscription for the **AvailabilityStatusChanged** event.
If you don't specify `IncludedEventType`, all the event types are included by default.
To **filter events** from a specific resource, use the `-SubjectBeginsWith` parameter. The example shows how to subscribe to `AvailabilityStatusChanged` events from resources in a specified resource group.
# [Azure PowerShell](#tab/azure-powershell)
To delete an event subscription, use the [`Remove-AzEventGridSystemTopicEventSubscription`](/powershell/module/az.eventgrid/remove-azeventgridsystemtopiceventsubscription) command. Here's an example:
To delete the system topic, use the [`Remove-AzEventGridSystemTopic`](/powershell/module/az.eventgrid/remove-azeventgridsystemtopic) command. Here's an example: