-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathany-property-at-any-level-can-be-an-expression.json
160 lines (160 loc) · 4.59 KB
/
any-property-at-any-level-can-be-an-expression.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"budgetName": {
"type": "string",
"metadata": {
"description": "Budget name"
}
},
"amount": {
"type": "string",
"metadata": {
"description": "The total amount of cost or usage to track with the budget"
}
},
"budgetCategory": {
"type": "string",
"defaultValue": "Cost",
"allowedValues": [
"Cost",
"Usage"
],
"metadata": {
"description": "The category of the budget, whether the budget tracks cost or usage."
}
},
"timeGrain": {
"type": "string",
"defaultValue": "Monthly",
"allowedValues": [
"Monthly",
"Quarterly",
"Annually"
],
"metadata": {
"description": "The time covered by a budget. Tracking of the amount will be reset based on the time grain."
}
},
"startDate": {
"type": "string",
"defaultValue": "YYYY-MM-DD",
"metadata": {
"description": "The start date for the budget."
}
},
"endDate": {
"type": "string",
"defaultValue": "YYYY-MM-DD",
"metadata": {
"description": "The end date for the budget. If not provided, we default this to 10 years from the start date."
}
},
"operator": {
"type": "string",
"defaultValue": "GreaterThan",
"allowedValues": [
"EqualTo",
"GreaterThan",
"GreaterThanOrEqualTo"
],
"metadata": {
"description": "The comparison operator."
}
},
"threshold": {
"type": "string",
"metadata": {
"description": "Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000."
}
},
"contactEmails": {
"type": "array",
"defaultValue": [
],
"metadata": {
"description": "Email addresses to send the budget notification to when the threshold is exceeded."
}
},
"contactRoles": {
"type": "array",
"defaultValue": [
"Owner",
"Contributor",
"Reader"
],
"metadata": {
"description": "Contact roles to send the budget notification to when the threshold is exceeded."
}
},
"contactGroups": {
"type": "array",
"defaultValue": [
"/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/microsoft.insights/actionGroups/SampleActionGroup1"
],
"metadata": {
"description": "Contact roles to send the budget notification to when the threshold is exceeded."
}
},
"resourcesFilter": {
"type": "array",
"defaultValue": [
"/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/vm1",
"/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/vm2"
],
"metadata": {
"description": "The list of filters on resources."
}
},
"metersFilter": {
"type": "array",
"defaultValue": [
"meterGuid1",
"meterGuid2"
],
"metadata": {
"description": "The list of filters on meters, mandatory for budgets of usage category."
}
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Consumption/budgets",
"name": "[parameters('budgetName')]",
"apiVersion": "2018-01-31",
"properties": {
"category": "[parameters('budgetCategory')]",
"amount": "[parameters('amount')]",
"timeGrain": "[parameters('timeGrain')]",
"timePeriod": {
"startDate": "[parameters('startDate')]",
"endDate": "[parameters('endDate')]"
},
"notifications": {
"First-Notification": {
"enabled": true,
"operator": "[parameters('operator')]",
"threshold": "[parameters('threshold')]",
"contactEmails": "[parameters('contactEmails')]",
"contactRoles": "[parameters('contactRoles')]",
"contactGroups": "[parameters('contactGroups')]"
}
},
"filters": {
"resources": "[parameters('resourcesFilter')]",
"meters": "[parameters('metersFilter')]"
}
}
}
],
"outputs": {
"budgetName": {
"type": "string",
"value": "[parameters('budgetName')]"
}
}
}