@@ -12,6 +12,14 @@ Get Action Rules Information
12
12
13
13
## SYNTAX
14
14
15
+ ### ListActionRules (Default)
16
+ ```
17
+ Get-AzActionRule [-Name <String>] [-ResourceGroupName <String>] [-TargetResourceType <String>]
18
+ [-MonitorService <String>] [-Severity <String>] [-ImpactedScope <String>] [-AlertRuleId <String>]
19
+ [-Description <String>] [-ActionGroup <String>] [-DefaultProfile <IAzureContextContainer>]
20
+ [<CommonParameters>]
21
+ ```
22
+
15
23
### ResourceId
16
24
```
17
25
Get-AzActionRule -ResourceId <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
@@ -23,11 +31,19 @@ Get-AzActionRule -Name <String> -ResourceGroupName <String> [-DefaultProfile <IA
23
31
[<CommonParameters>]
24
32
```
25
33
26
- ### ListActionRules
34
+ ### ListActionRulesByTargetResourceId
27
35
```
28
- Get-AzActionRule [-Name <String>] [-ResourceGroupName <String>] [-TargetResource <String>]
29
- [-TargetResourceType <String>] [-TargetResourceGroup <String>] [-MonitorService <String>] [-Severity <String>]
30
- [-ImpactedScope <String>] [-AlertRuleId <String>] [-Description <String>] [-ActionGroup <String>]
36
+ Get-AzActionRule [-Name <String>] [-ResourceGroupName <String>] [-TargetResourceId <String>]
37
+ [-MonitorService <String>] [-Severity <String>] [-ImpactedScope <String>] [-AlertRuleId <String>]
38
+ [-Description <String>] [-ActionGroup <String>] [-DefaultProfile <IAzureContextContainer>]
39
+ [<CommonParameters>]
40
+ ```
41
+
42
+ ### ListActionRulesByTargetResourceGroup
43
+ ```
44
+ Get-AzActionRule [-Name <String>] [-ResourceGroupName <String>] [-TargetResourceType <String>]
45
+ [-TargetResourceGroup <String>] [-MonitorService <String>] [-Severity <String>] [-ImpactedScope <String>]
46
+ [-AlertRuleId <String>] [-Description <String>] [-ActionGroup <String>]
31
47
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
32
48
```
33
49
@@ -56,8 +72,8 @@ Get the action rule with name Test-Action-Rule in test-rg resource group.
56
72
Action group
57
73
58
74
``` yaml
59
- Type : String
60
- Parameter Sets : ListActionRules
75
+ Type : System. String
76
+ Parameter Sets : ListActionRules, ListActionRulesByTargetResourceId, ListActionRulesByTargetResourceGroup
61
77
Aliases :
62
78
63
79
Required : False
@@ -71,8 +87,8 @@ Accept wildcard characters: False
71
87
Filter on Alert Rule Id
72
88
73
89
` ` ` yaml
74
- Type : String
75
- Parameter Sets : ListActionRules
90
+ Type : System. String
91
+ Parameter Sets : ListActionRules, ListActionRulesByTargetResourceId, ListActionRulesByTargetResourceGroup
76
92
Aliases :
77
93
78
94
Required : False
@@ -86,7 +102,7 @@ Accept wildcard characters: False
86
102
The credentials, account, tenant, and subscription used for communication with Azure.
87
103
88
104
` ` ` yaml
89
- Type : IAzureContextContainer
105
+ Type : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core. IAzureContextContainer
90
106
Parameter Sets : (All)
91
107
Aliases : AzContext, AzureRmContext, AzureCredential
92
108
@@ -101,8 +117,8 @@ Accept wildcard characters: False
101
117
Filter all the alerts having the Smart Group Id
102
118
103
119
` ` ` yaml
104
- Type : String
105
- Parameter Sets : ListActionRules
120
+ Type : System. String
121
+ Parameter Sets : ListActionRules, ListActionRulesByTargetResourceId, ListActionRulesByTargetResourceGroup
106
122
Aliases :
107
123
108
124
Required : False
@@ -116,8 +132,8 @@ Accept wildcard characters: False
116
132
Filter on Impacted scope
117
133
118
134
` ` ` yaml
119
- Type : String
120
- Parameter Sets : ListActionRules
135
+ Type : System. String
136
+ Parameter Sets : ListActionRules, ListActionRulesByTargetResourceId, ListActionRulesByTargetResourceGroup
121
137
Aliases :
122
138
123
139
Required : False
@@ -131,8 +147,8 @@ Accept wildcard characters: False
131
147
Filter on Moniter Service
132
148
133
149
` ` ` yaml
134
- Type : String
135
- Parameter Sets : ListActionRules
150
+ Type : System. String
151
+ Parameter Sets : ListActionRules, ListActionRulesByTargetResourceId, ListActionRulesByTargetResourceGroup
136
152
Aliases :
137
153
138
154
Required : False
@@ -146,23 +162,23 @@ Accept wildcard characters: False
146
162
Name of action rule.
147
163
148
164
` ` ` yaml
149
- Type : String
150
- Parameter Sets : ActionRuleByName
165
+ Type : System. String
166
+ Parameter Sets : ListActionRules, ListActionRulesByTargetResourceId, ListActionRulesByTargetResourceGroup
151
167
Aliases :
152
168
153
- Required : True
169
+ Required : False
154
170
Position : Named
155
171
Default value : None
156
172
Accept pipeline input : False
157
173
Accept wildcard characters : False
158
174
` ` `
159
175
160
176
` ` ` yaml
161
- Type : String
162
- Parameter Sets : ListActionRules
177
+ Type : System. String
178
+ Parameter Sets : ActionRuleByName
163
179
Aliases :
164
180
165
- Required : False
181
+ Required : True
166
182
Position : Named
167
183
Default value : None
168
184
Accept pipeline input : False
@@ -173,23 +189,23 @@ Accept wildcard characters: False
173
189
Resource Group Name in which action rule resides.
174
190
175
191
` ` ` yaml
176
- Type : String
177
- Parameter Sets : ActionRuleByName
192
+ Type : System. String
193
+ Parameter Sets : ListActionRules, ListActionRulesByTargetResourceId, ListActionRulesByTargetResourceGroup
178
194
Aliases :
179
195
180
- Required : True
196
+ Required : False
181
197
Position : Named
182
198
Default value : None
183
199
Accept pipeline input : False
184
200
Accept wildcard characters : False
185
201
` ` `
186
202
187
203
` ` ` yaml
188
- Type : String
189
- Parameter Sets : ListActionRules
204
+ Type : System. String
205
+ Parameter Sets : ActionRuleByName
190
206
Aliases :
191
207
192
- Required : False
208
+ Required : True
193
209
Position : Named
194
210
Default value : None
195
211
Accept pipeline input : False
@@ -200,7 +216,7 @@ Accept wildcard characters: False
200
216
Get Action rule by resoure id.
201
217
202
218
` ` ` yaml
203
- Type : String
219
+ Type : System. String
204
220
Parameter Sets : ResourceId
205
221
Aliases :
206
222
@@ -215,8 +231,8 @@ Accept wildcard characters: False
215
231
Filter on Severity of alert
216
232
217
233
` ` ` yaml
218
- Type : String
219
- Parameter Sets : ListActionRules
234
+ Type : System. String
235
+ Parameter Sets : ListActionRules, ListActionRulesByTargetResourceId, ListActionRulesByTargetResourceGroup
220
236
Aliases :
221
237
222
238
Required : False
@@ -226,12 +242,12 @@ Accept pipeline input: False
226
242
Accept wildcard characters : False
227
243
` ` `
228
244
229
- ### -TargetResource
230
- Filter on Resource Id of the target resource of alert.
245
+ ### -TargetResourceGroup
246
+ Filter on Resource group name of the target resource of alert.
231
247
232
248
` ` ` yaml
233
- Type : String
234
- Parameter Sets : ListActionRules
249
+ Type : System. String
250
+ Parameter Sets : ListActionRulesByTargetResourceGroup
235
251
Aliases :
236
252
237
253
Required : False
@@ -241,12 +257,12 @@ Accept pipeline input: False
241
257
Accept wildcard characters : False
242
258
` ` `
243
259
244
- ### -TargetResourceGroup
245
- Filter on Resource group name of the target resource of alert.
260
+ ### -TargetResourceId
261
+ Filter on Resource Id of the target resource of alert.
246
262
247
263
` ` ` yaml
248
- Type : String
249
- Parameter Sets : ListActionRules
264
+ Type : System. String
265
+ Parameter Sets : ListActionRulesByTargetResourceId
250
266
Aliases :
251
267
252
268
Required : False
@@ -260,8 +276,8 @@ Accept wildcard characters: False
260
276
Filter on Resource type of the target resource of alert.
261
277
262
278
` ` ` yaml
263
- Type : String
264
- Parameter Sets : ListActionRules
279
+ Type : System. String
280
+ Parameter Sets : ListActionRules, ListActionRulesByTargetResourceGroup
265
281
Aliases :
266
282
267
283
Required : False
0 commit comments