@@ -5,7 +5,7 @@ author: harelbr
5
5
ms.author : harelbr
6
6
services : azure-monitor
7
7
ms.topic : conceptual
8
- ms.date : 2/23 /2022
8
+ ms.date : 4/4 /2022
9
9
ms.custom : devx-track-azurepowershell
10
10
---
11
11
# Create a metric alert with a Resource Manager template
@@ -32,7 +32,7 @@ Save the json below as simplestaticmetricalert.json for the purpose of this walk
32
32
33
33
``` json
34
34
{
35
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate.json#" ,
35
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentTemplate.json#" ,
36
36
"contentVersion" : " 1.0.0.0" ,
37
37
"parameters" : {
38
38
"alertName" : {
@@ -205,7 +205,7 @@ Save the json below as simplestaticmetricalert.parameters.json and modify it as
205
205
206
206
``` json
207
207
{
208
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
208
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
209
209
"contentVersion" : " 1.0.0.0" ,
210
210
"parameters" : {
211
211
"alertName" : {
@@ -280,7 +280,7 @@ Save the json below as simpledynamicmetricalert.json for the purpose of this wal
280
280
281
281
``` json
282
282
{
283
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate.json#" ,
283
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentTemplate.json#" ,
284
284
"contentVersion" : " 1.0.0.0" ,
285
285
"parameters" : {
286
286
"alertName" : {
@@ -478,7 +478,7 @@ Save the json below as simpledynamicmetricalert.parameters.json and modify it as
478
478
479
479
``` json
480
480
{
481
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
481
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
482
482
"contentVersion" : " 1.0.0.0" ,
483
483
"parameters" : {
484
484
"alertName" : {
@@ -568,7 +568,7 @@ Save the json below as advancedstaticmetricalert.json for the purpose of this wa
568
568
569
569
``` json
570
570
{
571
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate.json#" ,
571
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentTemplate.json#" ,
572
572
"contentVersion" : " 1.0.0.0" ,
573
573
"parameters" : {
574
574
"alertName" : {
@@ -703,7 +703,7 @@ Save and modify the json below as advancedstaticmetricalert.parameters.json for
703
703
704
704
``` json
705
705
{
706
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
706
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
707
707
"contentVersion" : " 1.0.0.0" ,
708
708
"parameters" : {
709
709
"alertName" : {
@@ -812,7 +812,7 @@ Save the json below as multidimensionalstaticmetricalert.json for the purpose of
812
812
813
813
``` json
814
814
{
815
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate.json#" ,
815
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentTemplate.json#" ,
816
816
"contentVersion" : " 1.0.0.0" ,
817
817
"parameters" : {
818
818
"alertName" : {
@@ -939,7 +939,7 @@ Save and modify the json below as multidimensionalstaticmetricalert.parameters.j
939
939
940
940
``` json
941
941
{
942
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
942
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
943
943
"contentVersion" : " 1.0.0.0" ,
944
944
"parameters" : {
945
945
"alertName" : {
@@ -1036,7 +1036,7 @@ Save the json below as advanceddynamicmetricalert.json for the purpose of this w
1036
1036
1037
1037
``` json
1038
1038
{
1039
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate.json#" ,
1039
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentTemplate.json#" ,
1040
1040
"contentVersion" : " 1.0.0.0" ,
1041
1041
"parameters" : {
1042
1042
"alertName" : {
@@ -1158,7 +1158,7 @@ Save and modify the json below as advanceddynamicmetricalert.parameters.json for
1158
1158
1159
1159
``` json
1160
1160
{
1161
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
1161
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
1162
1162
"contentVersion" : " 1.0.0.0" ,
1163
1163
"parameters" : {
1164
1164
"alertName" : {
@@ -1252,7 +1252,7 @@ Save the json below as customstaticmetricalert.json for the purpose of this walk
1252
1252
1253
1253
``` json
1254
1254
{
1255
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate.json#" ,
1255
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentTemplate.json#" ,
1256
1256
"contentVersion" : " 1.0.0.0" ,
1257
1257
"parameters" : {
1258
1258
"alertName" : {
@@ -1431,7 +1431,7 @@ Save and modify the json below as customstaticmetricalert.parameters.json for th
1431
1431
1432
1432
``` json
1433
1433
{
1434
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
1434
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
1435
1435
"contentVersion" : " 1.0.0.0" ,
1436
1436
"parameters" : {
1437
1437
"alertName" : {
@@ -1528,7 +1528,7 @@ Save the json below as all-vms-in-resource-group-static.json for the purpose of
1528
1528
1529
1529
``` json
1530
1530
{
1531
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate.json#" ,
1531
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentTemplate.json#" ,
1532
1532
"contentVersion" : " 1.0.0.0" ,
1533
1533
"parameters" : {
1534
1534
"alertName" : {
@@ -1760,7 +1760,7 @@ Save and modify the json below as all-vms-in-resource-group-static.parameters.js
1760
1760
1761
1761
``` json
1762
1762
{
1763
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
1763
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
1764
1764
"contentVersion" : " 1.0.0.0" ,
1765
1765
"parameters" : {
1766
1766
"alertName" : {
@@ -1839,7 +1839,7 @@ Save the json below as all-vms-in-resource-group-dynamic.json for the purpose of
1839
1839
1840
1840
``` json
1841
1841
{
1842
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate.json#" ,
1842
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentTemplate.json#" ,
1843
1843
"contentVersion" : " 1.0.0.0" ,
1844
1844
"parameters" : {
1845
1845
"alertName" : {
@@ -2089,7 +2089,7 @@ Save and modify the json below as all-vms-in-resource-group-dynamic.parameters.j
2089
2089
2090
2090
``` json
2091
2091
{
2092
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
2092
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
2093
2093
"contentVersion" : " 1.0.0.0" ,
2094
2094
"parameters" : {
2095
2095
"alertName" : {
@@ -2174,7 +2174,7 @@ Save the json below as all-vms-in-subscription-static.json for the purpose of th
2174
2174
2175
2175
``` json
2176
2176
{
2177
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate.json#" ,
2177
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentTemplate.json#" ,
2178
2178
"contentVersion" : " 1.0.0.0" ,
2179
2179
"parameters" : {
2180
2180
"alertName" : {
@@ -2407,7 +2407,7 @@ Save and modify the json below as all-vms-in-subscription-static.parameters.json
2407
2407
2408
2408
``` json
2409
2409
{
2410
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
2410
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
2411
2411
"contentVersion" : " 1.0.0.0" ,
2412
2412
"parameters" : {
2413
2413
"alertName" : {
@@ -2483,7 +2483,7 @@ Save the json below as all-vms-in-subscription-dynamic.json for the purpose of t
2483
2483
2484
2484
``` json
2485
2485
{
2486
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate.json#" ,
2486
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentTemplate.json#" ,
2487
2487
"contentVersion" : " 1.0.0.0" ,
2488
2488
"parameters" : {
2489
2489
"alertName" : {
@@ -2733,7 +2733,7 @@ Save and modify the json below as all-vms-in-subscription-dynamic.parameters.jso
2733
2733
2734
2734
``` json
2735
2735
{
2736
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
2736
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
2737
2737
"contentVersion" : " 1.0.0.0" ,
2738
2738
"parameters" : {
2739
2739
"alertName" : {
@@ -2815,7 +2815,7 @@ Save the json below as list-of-vms-static.json for the purpose of this walk-thro
2815
2815
2816
2816
``` json
2817
2817
{
2818
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate.json#" ,
2818
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentTemplate.json#" ,
2819
2819
"contentVersion" : " 1.0.0.0" ,
2820
2820
"parameters" : {
2821
2821
"alertName" : {
@@ -3048,7 +3048,7 @@ Save and modify the json below as list-of-vms-static.parameters.json for the pur
3048
3048
3049
3049
``` json
3050
3050
{
3051
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
3051
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
3052
3052
"contentVersion" : " 1.0.0.0" ,
3053
3053
"parameters" : {
3054
3054
"alertName" : {
@@ -3127,7 +3127,7 @@ Save the json below as list-of-vms-dynamic.json for the purpose of this walk-thr
3127
3127
3128
3128
``` json
3129
3129
{
3130
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate.json#" ,
3130
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentTemplate.json#" ,
3131
3131
"contentVersion" : " 1.0.0.0" ,
3132
3132
"parameters" : {
3133
3133
"alertName" : {
@@ -3377,7 +3377,7 @@ Save and modify the json below as list-of-vms-dynamic.parameters.json for the pu
3377
3377
3378
3378
``` json
3379
3379
{
3380
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
3380
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
3381
3381
"contentVersion" : " 1.0.0.0" ,
3382
3382
"parameters" : {
3383
3383
"alertName" : {
@@ -3463,7 +3463,7 @@ Save the json below as availabilityalert.json for the purpose of this walkthroug
3463
3463
3464
3464
``` json
3465
3465
{
3466
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentTemplate.json#" ,
3466
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentTemplate.json#" ,
3467
3467
"contentVersion" : " 1.0.0.0" ,
3468
3468
"parameters" : {
3469
3469
"appName" : {
@@ -3571,7 +3571,7 @@ Save the json below as availabilityalert.parameters.json and modify it as requir
3571
3571
3572
3572
``` json
3573
3573
{
3574
- "$schema" : " https://schema.management.azure.com/schemas/2015-01 -01/deploymentParameters.json#" ,
3574
+ "$schema" : " https://schema.management.azure.com/schemas/2019-04 -01/deploymentParameters.json#" ,
3575
3575
"contentVersion" : " 1.0.0.0" ,
3576
3576
"parameters" : {
3577
3577
"appName" : {
0 commit comments