Skip to content

Commit f5daf90

Browse files
committed
metric alert fix and dates
1 parent 7982cbb commit f5daf90

11 files changed

+12
-36
lines changed

articles/azure-monitor/samples/arm-action-groups.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.subservice: logs
55
ms.topic: sample
66
author: bwren
77
ms.author: bwren
8-
ms.date: 04/22/2020
8+
ms.date: 05/18/2020
99

1010
---
1111

articles/azure-monitor/samples/arm-agent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.subservice: logs
55
ms.topic: sample
66
author: bwren
77
ms.author: bwren
8-
ms.date: 04/22/2020
8+
ms.date: 05/18/2020
99

1010
---
1111

articles/azure-monitor/samples/arm-alerts-log.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.subservice: logs
55
ms.topic: sample
66
author: bwren
77
ms.author: bwren
8-
ms.date: 04/22/2020
8+
ms.date: 05/18/2020
99

1010
---
1111

articles/azure-monitor/samples/arm-alerts-metric.md

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ author: bwren
55
ms.author: bwren
66
services: azure-monitor
77
ms.topic: sample
8-
ms.date: 4/20/2020
8+
ms.date: 05/18/2020
99
ms.subservice: alerts
1010
---
1111
# Create a metric alert with a Resource Manager template
1212

1313
This article provides samples of using [Azure Resource Manager templates](../../azure-resource-manager/templates/template-syntax.md) to configure [metric alert rules](../platform/alerts-metric-near-real-time.md) in Azure Monitor. Each sample includes a template file and a parameters file with sample values to provide to the template.
1414

15+
[!INCLUDE [azure-monitor-samples](../../../includes/azure-monitor-samples.md)]
1516

1617
See [Supported resources for metric alerts in Azure Monitor](../platform/alerts-metric-near-real-time.md) for a list of resources that can be used with metric alert rules. An explanation of the schema and properties for an alert rule is available at [Metric Alerts - Create Or Update](https://docs.microsoft.com/rest/api/monitor/metricalerts/createorupdate).
1718

@@ -1316,31 +1317,6 @@ Save the json below as customstaticmetricalert.json for the purpose of this walk
13161317
```
13171318

13181319

1319-
You can create the metric alert using the template and parameters file using PowerShell or Azure CLI from your current working directory.
1320-
1321-
Using Azure PowerShell
1322-
```powershell
1323-
Connect-AzAccount
1324-
1325-
Select-AzSubscription -SubscriptionName <yourSubscriptionName>
1326-
1327-
New-AzResourceGroupDeployment -Name AlertDeployment -ResourceGroupName ResourceGroupOfTargetResource `
1328-
-TemplateFile customstaticmetricalert.json -TemplateParameterFile customstaticmetricalert.parameters.json
1329-
```
1330-
1331-
1332-
1333-
Using Azure CLI
1334-
```azurecli
1335-
az login
1336-
1337-
az group deployment create \
1338-
--name AlertDeployment \
1339-
--resource-group ResourceGroupOfTargetResource \
1340-
--template-file customstaticmetricalert.json \
1341-
--parameters @customstaticmetricalert.parameters.json
1342-
```
1343-
13441320
>[!NOTE]
13451321
>
13461322
> You can find the metric namespace of a specific custom metric by [browsing your custom metrics via the Azure portal](https://docs.microsoft.com/azure/azure-monitor/platform/metrics-custom-overview#browse-your-custom-metrics-via-the-azure-portal)

articles/azure-monitor/samples/arm-container-insights.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.subservice: logs
55
ms.topic: sample
66
author: bwren
77
ms.author: bwren
8-
ms.date: 04/22/2020
8+
ms.date: 05/18/2020
99

1010
---
1111

articles/azure-monitor/samples/arm-diagnostic-settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.subservice: logs
55
ms.topic: sample
66
author: bwren
77
ms.author: bwren
8-
ms.date: 04/22/2020
8+
ms.date: 05/18/2020
99

1010
---
1111

articles/azure-monitor/samples/arm-log-queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.subservice: logs
55
ms.topic: sample
66
author: bwren
77
ms.author: bwren
8-
ms.date: 04/22/2020
8+
ms.date: 05/18/2020
99

1010
---
1111

articles/azure-monitor/samples/arm-samples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: bwren
55
ms.author: bwren
66
services: azure-monitor
77
ms.topic: sample
8-
ms.date: 4/20/2020
8+
ms.date: 05/18/2020
99
ms.subservice: alerts
1010
---
1111
# Azure Monitor resource manager samples

articles/azure-monitor/samples/arm-vminsights.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.subservice: logs
55
ms.topic: sample
66
author: bwren
77
ms.author: bwren
8-
ms.date: 04/22/2020
8+
ms.date: 05/18/2020
99

1010
---
1111

articles/azure-monitor/samples/arm-workbooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.subservice: logs
55
ms.topic: sample
66
author: bwren
77
ms.author: bwren
8-
ms.date: 04/22/2020
8+
ms.date: 05/18/2020
99

1010
---
1111

0 commit comments

Comments
 (0)