אירוע
17 במרץ, 21 - 21 במרץ, 10
הצטרף לסידרה של פגישות כדי לבנות פתרונות מדרגיים של בינה מלאכותית בהתבסס על מקרי שימוש מהעולם האמיתי עם מפתחים ומומחים אחרים.
הירשם עכשיוהדפדפן הזה אינו נתמך עוד.
שדרג ל- Microsoft Edge כדי לנצל את התכונות, עדכוני האבטחה והתמיכה הטכנית העדכניים ביותר.
Manage your alert rules in the Azure portal, or using the Azure Command-Line Interface (CLI) or PowerShell.
In the portal, select Monitor, then Alerts.
From the top command bar, select Alert rules. The page shows all your alert rules on all subscriptions.
You can filter the list of rules using the available filters:
הערה
If you filter on a target resource type
scope, the alerts rules list doesn’t include resource health alert rules. To see the resource health alert rules, remove the Target resource type
filter, or filter the rules based on the Resource group
or Subscription
.
Select an alert rule or use the checkboxes on the left to select multiple alert rules.
If you select multiple alert rules, you can enable or disable the selected rules. Selecting multiple rules can be useful when you want to perform maintenance on specific alert rule resources.
If you select a single alert rule, you can edit, disable, duplicate, or delete the rule in the alert rule pane.
To edit an alert rule, select Edit, and then edit any of the fields in the following sections. You can't edit the Alert Rule Name, or the Signal type of an existing alert rule.
Select Save on the top command bar.
הערה
This section describes how to manage alert rules created in the latest UI or using an API version later than 2018-04-16
. See View and manage log search alert rules created in previous versions for information about how to view and manage log search alert rules created in the previous UI.
You can create a new alert rule, or enable recommended out-of-the-box alert rules in the Azure portal.
The system compiles a list of recommended alert rules based on:
הערה
The alert rule recommendations feature is enabled for:
To enable recommended alert rules:
In the left pane, select Alerts.
Select View + set up. The Set up recommended alert rules pane opens with a list of recommended alert rules based on your type of resource.
In the Select alert rules section, all recommended alerts are populated with the default values for the rule condition, such as the percentage of CPU usage that you want to trigger an alert. You can change the default values if you would like, or turn off an alert.
Expand each of the alert rules to see its details. By default, the severity for each is Informational. You can change to another severity if you'd like.
In the Notify me by section, select the way you want to be notified if an alert is fired.
Select Use an existing action group, and enter the details of the existing action group if you want to use an action group that already exists.
Select Save.
To see the history of an alert rule, you must have a role with read permissions on the subscription containing the resource on which the alert fired.
In the portal, select Monitor, then Alerts.
From the top command bar, select Alert rules. The page shows all your alert rules on all subscriptions.
Select an alert rule, and then select History on the left pane to see the history of when the alert rule triggered.
This section describes how to manage metric alert rules using the cross-platform Azure CLI. The following examples use Azure Cloud Shell.
In the portal, select Cloud Shell.
Use these options of the az monitor metrics alert
CLI command in this table:
What you want to do | CLI command |
---|---|
View all the metric alerts in a resource group | az monitor metrics alert list -g {ResourceGroup} |
See the details of a metric alert rule | az monitor metrics alert show -g {ResourceGroup} -n {AlertRuleName} |
az monitor metrics alert show --ids {RuleResourceId} |
|
Disable a metric alert rule | az monitor metrics alert update -g {ResourceGroup} -n {AlertRuleName} --enabled false |
Delete a metric alert rule | az monitor metrics alert delete -g {ResourceGroup} -n {AlertRuleName} |
Learn more about the command | az monitor metrics alert --help |
Metric alert rules have these dedicated PowerShell cmdlets:
When you delete an Azure resource, associated metric alert rules aren't deleted automatically. To delete alert rules associated with a resource that's been deleted:
To check the current number of metric alert rules in use, follow the next steps.
This section describes how to manage log search alerts using the cross-platform Azure CLI. The following examples use Azure Cloud Shell.
הערה
Azure CLI support is only available for the scheduledQueryRules API version 2021-08-01
and later. Previous API versions can use the Azure Resource Manager CLI with templates as described below. If you use the legacy Log Analytics Alert API, you will need to switch to use CLI. Learn more about switching.
In the portal, select Cloud Shell.
Use these options of the az monitor scheduled-query alert
CLI command in this table:
What you want to do | CLI command |
---|---|
View all the log alert rules in a resource group | az monitor scheduled-query list -g {ResourceGroup} |
See the details of a log alert rule | az monitor scheduled-query show -g {ResourceGroup} -n {AlertRuleName} |
az monitor scheduled-query show --ids {RuleResourceId} |
|
Disable a log alert rule | az monitor scheduled-query update -g {ResourceGroup} -n {AlertRuleName} --disabled true |
Delete a log alert rule | az monitor scheduled-query delete -g {ResourceGroup} -n {AlertRuleName} |
Learn more about the command | az monitor scheduled-query --help |
az login
az deployment group create \
--name AlertDeployment \
--resource-group ResourceGroupofTargetResource \
--template-file mylogalerttemplate.json \
--parameters @mylogalerttemplate.parameters.json
A 201 response is returned on successful creation. 200 is returned on successful updates.
Log search alert rules have this dedicated PowerShell cmdlet:
The total number of log search alert rules is displayed above the rules list.
Activity log alerts have these dedicated PowerShell cmdlets:
אירוע
17 במרץ, 21 - 21 במרץ, 10
הצטרף לסידרה של פגישות כדי לבנות פתרונות מדרגיים של בינה מלאכותית בהתבסס על מקרי שימוש מהעולם האמיתי עם מפתחים ומומחים אחרים.
הירשם עכשיוהדרכה
מודול
קביעת תצורה של התראות ותגובות - Training
במודול זה, תלמד כיצד התראות Azure Monitoring מודיעות לך באופן יזום כאשר נתוני Azure Monitor מציינים שיש בעיה בתשתית או ביישומים שלך לפני שהבעיה הופכת לבעיה עבור המשתמשים שלך.
אישור
Microsoft Certified: Security Operations Analyst Associate - Certifications
חקור, חפש וצמצום איומים באמצעות Microsoft Sentinel, Microsoft Defender עבור ענן ו- Microsoft 365 Defender.
תיעוד
Create Azure Monitor metric alert rules - Azure Monitor
This article shows you how to create a new metric alert rule.
Types of Azure Monitor alerts - Azure Monitor
This article explains the different types of Azure Monitor alerts and when to use each type.
Troubleshooting Azure Monitor alerts and notifications - Azure Monitor
Troubleshoot common problems with Azure Monitor alerts and possible solutions.