Skip to content

Commit b979210

Browse files
committed
availability tutorial
1 parent 2225d22 commit b979210

File tree

3 files changed

+21
-31
lines changed

3 files changed

+21
-31
lines changed
196 KB
Loading

articles/azure-monitor/vm/tutorial-monitor-vm-alert-availability.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ ms.reviewer: Xema Pathak
99
---
1010

1111
# Tutorial: Create availability alert rule for Azure virtual machine (preview)
12-
One of the most common monitoring requirements for a virtual machine is to create an alert if it stops running. The best method for this is to create a metric alert rule in Azure Monitor using the VM availability metric which is currently in public preview.
12+
One of the most common monitoring requirements for a virtual machine is to create an alert if it stops running. The best method for this is to create a metric alert rule in Azure Monitor using the **VM availability** metric which is currently in public preview.
1313

1414
In this article, you learn how to:
1515

1616
> [!div class="checklist"]
17-
> * View the VM availability metric that shows when a VM is running.
17+
> * View the VM availability metric that indicates whether a VM is running.
1818
> * Create an alert rule using the VM availability metric to notify you if the virtual machine is unavailable.
1919
> * Create an action group to be proactively notified when an alert is created.
2020
@@ -35,9 +35,7 @@ There are multiple methods to create an alert rule in Azure Monitor. In this tut
3535
> [!TIP]
3636
> You can create an alert rule for a group of VMs in the same region by changing the scope of the alert rule to a subscription or resource group.
3737
38-
Click on the **VM availability** chart to open the metric in [metrics explorer](../essentials/metrics-getting-started.md). This is a tool in Azure Monitor that allows you to interactively analyze metrics collected from your Azure resources.
39-
40-
Click **New alert rule**. This starts the creation of a new alert rule using the VM availability metric and the current VM.
38+
Click on the **VM availability** chart to open the metric in [metrics explorer](../essentials/metrics-getting-started.md). This is a tool in Azure Monitor that allows you to interactively analyze metrics collected from your Azure resources. Click **New alert rule**. This starts the creation of a new alert rule using the VM availability metric and the current VM.
4139

4240
:::image type="content" source="media/tutorial-monitor-vm/vm-availability-metric-explorer.png" alt-text="Screenshot of VM Availability metric in metrics explorer." lightbox="media/tutorial-monitor-vm/vm-availability-metric-explorer.png":::
4341

@@ -84,7 +82,7 @@ Select **Notifications** and add one or more methods to notify appropriate peopl
8482
## Configure details
8583
The **Details** page allows you to configure different settings for the alert rule.
8684

87-
| Setting } Description |
85+
| Setting | Description |
8886
|:---|:---|
8987
| Subscription | Subscription where the alert rule will be stored. |
9088
| Resource group | Resource group where the alert rule will be stored. This doesn't need to be in the same resource group as the resource that you're monitoring. |
@@ -98,13 +96,10 @@ The **Details** page allows you to configure different settings for the alert ru
9896
Click **Review + create** to create the alert rule.
9997

10098
## View the alert
101-
To test the alert rule, stop the virtual machine. If you configured a notification in your action group, then you should receive that notification within a few minutes. You'll also see an alert indicated in the summary shown in the **Alerts** page for the virtual machine.
102-
103-
:::image type="content" source="media/tutorial-monitor-vm/alerts-summary.png" lightbox="media/tutorial-monitor-vm/alerts-summary.png" alt-text="Alerts summary":::
99+
To test the alert rule, stop the virtual machine. If you configured a notification in your action group, then you should receive that notification within a few seconds. You'll also see an alert indicated in the summary shown in the **Alerts** page for the virtual machine.
104100

105-
Click on the **Severity** to see the list of those alerts. Click on the alert itself to view its details.
101+
:::image type="content" source="media/tutorial-monitor-vm/vm-availability-metric-alert.png" lightbox="media/tutorial-monitor-vm/alerts-summary.png" alt-text="Alerts summary":::
106102

107-
:::image type="content" source="media/tutorial-monitor-vm/alerts-summary.png" lightbox="media/tutorial-monitor-vm/alerts-summary.png" alt-text="Alerts list":::
108103

109104
## Next steps
110105
Now that you know how to create an alert from log data, collect additional logs and performance data from the virtual machine with a data collection rule.

articles/azure-monitor/vm/tutorial-monitor-vm-alert-recommended.md

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,42 @@
11
---
2-
title: Create availability alert rule for Azure virtual machine (preview)
3-
description: Create an alert rule in Azure Monitor to proactively notify you if a virtual machine is unavailable.
2+
title: Enable recommended alert rules for Azure virtual machine
3+
description: Enable set of recommended metric alert rules for an Azure virtual machine.
44
ms.service: azure-monitor
55
ms.topic: article
66
ms.custom: subject-monitoring
77
ms.date: 11/04/2021
88
ms.reviewer: Xema Pathak
99
---
1010

11-
# Tutorial: Create availability alert rule for Azure virtual machine (preview)
12-
When you create a new Azure virtual machine, you can quickly enable a set of recommended alert rules that will provide you with initial monitoring for a common set of performance counters.
11+
# Tutorial: Enable recommended alert rules for Azure virtual machine
12+
[Alerts in Azure Monitor](../alerts/alerts-overview.md) identify when a resource isn't healthy. When you create a new Azure virtual machine, you can quickly enable a set of recommended alert rules that will provide you with initial monitoring for a common set of metrics including CPU percentage and available memory.
13+
14+
> [!NOTE]
15+
> If you selected the **Enable recommended alert rules** option when you created your virtual machine, then the recommended alert rules described in this tutorial will already exist.
1316
1417
In this article, you learn how to:
1518

1619
> [!div class="checklist"]
17-
> * View the VM availability metric that shows when a VM is running.
18-
> * Create an alert rule using the VM availability metric to notify you if the virtual machine is unavailable.
19-
> * Create an action group to be proactively notified when an alert is created.
20+
> * Enable recommended alerts for a new Azure virtual machine.
21+
> * Specify an email address to be notified when an alert files.
22+
> * View the resulting alert rules.
2023
2124
## Prerequisites
2225
To complete the steps in this article you need the following:
2326

2427
- An Azure virtual machine to monitor.
2528

2629
> [!IMPORTANT]
27-
> If the VM has any other alert rules associate with it, then recommended alerts will not be available.
30+
> If the VM has any other alert rules associate with it, then recommended alerts will not be available. You can access recommended alerts by removing any alert rules targeted to the VM.
2831
2932

30-
## Create alert rules
31-
From the menu for the VM, select **Alerts**. You'll se a brief description of recommended alerts and the option to enable them. Click **Enable recommended alert rules**.
33+
## Create recommended alert rules
34+
From the menu for the VM, select **Alerts**. You'll see a brief description of recommended alerts and the option to enable them. Click **Enable recommended alert rules**.
3235

3336
:::image type="content" source="media/tutorial-monitor-vm/recommended-alerts-enable.png" alt-text="Screenshot of option to enable recommended alerts for a virtual machine." lightbox="media/tutorial-monitor-vm/recommended-alerts-enable.png":::
3437

3538

36-
A list of recommended alert rules is displayed. You can select which ones to create and change their recommended threshold if you want. Ensure that **Email** is enabled and provide an email address to be notified when any of the alert rules fires. An [action group](../alerts/action-groups.md) will be created with this address. If you already have an action group that you want to use, you can specify it instead.
39+
A list of recommended alert rules is displayed. You can select which ones to create and change their recommended threshold if you want. Ensure that **Email** is enabled and provide an email address to be notified when any of the alerts fire. An [action group](../alerts/action-groups.md) will be created with this address. If you already have an action group that you want to use, you can specify it instead.
3740

3841

3942
:::image type="content" source="media/tutorial-monitor-vm/recommended-alerts-configure.png" alt-text="Screenshot of recommended alert rule configuration." lightbox="media/tutorial-monitor-vm/recommended-alerts-configure.png":::
@@ -44,19 +47,11 @@ When the alert rule creation is complete, you'll see the alerts screen for the V
4447

4548
:::image type="content" source="media/tutorial-monitor-vm/recommended-alerts-complete.png" alt-text="Screenshot of alert screen for a VM." lightbox="media/tutorial-monitor-vm/recommended-alerts-complete.png":::
4649

47-
Click **Alert rules** to view the alert rules that you just created. You can see that a rule has been created for each that you selected. If the threshold is exceeded for any of these rules, an Azure Monitor alert will be created, and an email will be sent to the address that you specified.
50+
Click **Alert rules** to view the rules you just created. You can click on any of the rules to view their details and to modify their threshold if you want.
4851

4952
:::image type="content" source="media/tutorial-monitor-vm/recommended-alerts-rules.png" alt-text="Screenshot of list of created alert rules." lightbox="media/tutorial-monitor-vm/recommended-alerts-rules.png":::
5053

5154

52-
## View the alert
53-
To test the alert rule, stop the virtual machine. If you configured a notification in your action group, then you should receive that notification within a few minutes. You'll also see an alert indicated in the summary shown in the **Alerts** page for the virtual machine.
54-
55-
:::image type="content" source="media/tutorial-monitor-vm/alerts-summary.png" lightbox="media/tutorial-monitor-vm/alerts-summary.png" alt-text="Alerts summary":::
56-
57-
Click on the **Severity** to see the list of those alerts. Click on the alert itself to view its details.
58-
59-
:::image type="content" source="media/tutorial-monitor-vm/alerts-summary.png" lightbox="media/tutorial-monitor-vm/alerts-summary.png" alt-text="Alerts list":::
6055

6156
## Next steps
6257
Now that you know how to create an alert from log data, collect additional logs and performance data from the virtual machine with a data collection rule.

0 commit comments

Comments
 (0)