@@ -8,22 +8,37 @@ schema: 2.0.0
88# New-AzScheduledQueryRule
99
1010## SYNOPSIS
11- Creates or updates a scheduled query rule.
11+ Create a scheduled query rule.
1212
1313## SYNTAX
1414
15+ ### CreateExpanded (Default)
1516```
1617New-AzScheduledQueryRule -Name <String> -ResourceGroupName <String> [-SubscriptionId <String>]
1718 -Location <String> [-ActionCustomProperty <Hashtable>] [-ActionGroupResourceId <String[]>] [-AutoMitigate]
1819 [-CheckWorkspaceAlertsStorageConfigured] [-CriterionAllOf <ICondition[]>] [-Description <String>]
19- [-DisplayName <String>] [-Enabled] [-EvaluationFrequency <TimeSpan>] [-Kind <Kind >]
20+ [-DisplayName <String>] [-Enabled] [-EvaluationFrequency <TimeSpan>] [-Kind <String >]
2021 [-MuteActionsDuration <TimeSpan>] [-OverrideQueryTimeRange <TimeSpan>] [-Scope <String[]>] [-Severity <Int64>]
2122 [-SkipQueryValidation] [-Tag <Hashtable>] [-TargetResourceType <String[]>] [-WindowSize <TimeSpan>]
2223 [-DefaultProfile <PSObject>] [-WhatIf] [-Confirm] [<CommonParameters>]
2324```
2425
26+ ### CreateViaJsonFilePath
27+ ```
28+ New-AzScheduledQueryRule -Name <String> -ResourceGroupName <String> [-SubscriptionId <String>]
29+ -JsonFilePath <String> [-DefaultProfile <PSObject>] [-WhatIf] [-Confirm]
30+ [<CommonParameters>]
31+ ```
32+
33+ ### CreateViaJsonString
34+ ```
35+ New-AzScheduledQueryRule -Name <String> -ResourceGroupName <String> [-SubscriptionId <String>]
36+ -JsonString <String> [-DefaultProfile <PSObject>] [-WhatIf] [-Confirm]
37+ [<CommonParameters>]
38+ ```
39+
2540## DESCRIPTION
26- Creates or updates a scheduled query rule.
41+ Create a scheduled query rule.
2742
2843## EXAMPLES
2944
@@ -44,7 +59,7 @@ The properties of an alert payload.
4459
4560``` yaml
4661Type : System.Collections.Hashtable
47- Parameter Sets : (All)
62+ Parameter Sets : CreateExpanded
4863Aliases :
4964
5065Required : False
@@ -59,7 +74,7 @@ Action Group resource Ids to invoke when the alert fires.
5974
6075` ` ` yaml
6176Type : System.String[]
62- Parameter Sets : (All)
77+ Parameter Sets : CreateExpanded
6378Aliases :
6479
6580Required : False
@@ -76,7 +91,7 @@ Relevant only for rules of the kind LogAlert.
7691
7792` ` ` yaml
7893Type : System.Management.Automation.SwitchParameter
79- Parameter Sets : (All)
94+ Parameter Sets : CreateExpanded
8095Aliases :
8196
8297Required : False
@@ -93,7 +108,7 @@ Relevant only for rules of the kind LogAlert.
93108
94109` ` ` yaml
95110Type : System.Management.Automation.SwitchParameter
96- Parameter Sets : (All)
111+ Parameter Sets : CreateExpanded
97112Aliases :
98113
99114Required : False
@@ -105,11 +120,10 @@ Accept wildcard characters: False
105120
106121### -CriterionAllOf
107122A list of conditions to evaluate against the specified scopes
108- To construct, see NOTES section for CRITERIONALLOF properties and create a hash table.
109123
110124` ` ` yaml
111- Type : Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Models.Api20210801. ICondition[]
112- Parameter Sets : (All)
125+ Type : Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Models.ICondition[]
126+ Parameter Sets : CreateExpanded
113127Aliases :
114128
115129Required : False
@@ -140,7 +154,7 @@ The description of the scheduled query rule.
140154
141155` ` ` yaml
142156Type : System.String
143- Parameter Sets : (All)
157+ Parameter Sets : CreateExpanded
144158Aliases :
145159
146160Required : False
@@ -155,7 +169,7 @@ The display name of the alert rule
155169
156170` ` ` yaml
157171Type : System.String
158- Parameter Sets : (All)
172+ Parameter Sets : CreateExpanded
159173Aliases :
160174
161175Required : False
@@ -171,7 +185,7 @@ Value should be true or false
171185
172186` ` ` yaml
173187Type : System.Management.Automation.SwitchParameter
174- Parameter Sets : (All)
188+ Parameter Sets : CreateExpanded
175189Aliases :
176190
177191Required : False
@@ -187,7 +201,7 @@ Relevant and required only for rules of the kind LogAlert.
187201
188202` ` ` yaml
189203Type : System.TimeSpan
190- Parameter Sets : (All)
204+ Parameter Sets : CreateExpanded
191205Aliases :
192206
193207Required : False
@@ -197,13 +211,43 @@ Accept pipeline input: False
197211Accept wildcard characters : False
198212` ` `
199213
214+ ### -JsonFilePath
215+ Path of Json file supplied to the Create operation
216+
217+ ` ` ` yaml
218+ Type : System.String
219+ Parameter Sets : CreateViaJsonFilePath
220+ Aliases :
221+
222+ Required : True
223+ Position : Named
224+ Default value : None
225+ Accept pipeline input : False
226+ Accept wildcard characters : False
227+ ` ` `
228+
229+ ### -JsonString
230+ Json string supplied to the Create operation
231+
232+ ` ` ` yaml
233+ Type : System.String
234+ Parameter Sets : CreateViaJsonString
235+ Aliases :
236+
237+ Required : True
238+ Position : Named
239+ Default value : None
240+ Accept pipeline input : False
241+ Accept wildcard characters : False
242+ ` ` `
243+
200244### -Kind
201245Indicates the type of scheduled query rule.
202246The default is LogAlert.
203247
204248` ` ` yaml
205- Type : Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Support.Kind
206- Parameter Sets : (All)
249+ Type : System.String
250+ Parameter Sets : CreateExpanded
207251Aliases :
208252
209253Required : False
@@ -218,7 +262,7 @@ The geo-location where the resource lives
218262
219263` ` ` yaml
220264Type : System.String
221- Parameter Sets : (All)
265+ Parameter Sets : CreateExpanded
222266Aliases :
223267
224268Required : True
@@ -234,7 +278,7 @@ Relevant only for rules of the kind LogAlert.
234278
235279` ` ` yaml
236280Type : System.TimeSpan
237- Parameter Sets : (All)
281+ Parameter Sets : CreateExpanded
238282Aliases :
239283
240284Required : False
@@ -265,7 +309,7 @@ Relevant only for rules of the kind LogAlert.
265309
266310` ` ` yaml
267311Type : System.TimeSpan
268- Parameter Sets : (All)
312+ Parameter Sets : CreateExpanded
269313Aliases :
270314
271315Required : False
@@ -296,7 +340,7 @@ The list of resource id's that this scheduled query rule is scoped to.
296340
297341` ` ` yaml
298342Type : System.String[]
299- Parameter Sets : (All)
343+ Parameter Sets : CreateExpanded
300344Aliases :
301345
302346Required : False
@@ -314,7 +358,7 @@ Relevant and required only for rules of the kind LogAlert.
314358
315359` ` ` yaml
316360Type : System.Int64
317- Parameter Sets : (All)
361+ Parameter Sets : CreateExpanded
318362Aliases :
319363
320364Required : False
@@ -331,7 +375,7 @@ Relevant only for rules of the kind LogAlert.
331375
332376` ` ` yaml
333377Type : System.Management.Automation.SwitchParameter
334- Parameter Sets : (All)
378+ Parameter Sets : CreateExpanded
335379Aliases :
336380
337381Required : False
@@ -361,7 +405,7 @@ Resource tags.
361405
362406` ` ` yaml
363407Type : System.Collections.Hashtable
364- Parameter Sets : (All)
408+ Parameter Sets : CreateExpanded
365409Aliases :
366410
367411Required : False
@@ -378,7 +422,7 @@ Relevant only for rules of the kind LogAlert
378422
379423` ` ` yaml
380424Type : System.String[]
381- Parameter Sets : (All)
425+ Parameter Sets : CreateExpanded
382426Aliases :
383427
384428Required : False
@@ -394,7 +438,7 @@ Relevant and required only for rules of the kind LogAlert.
394438
395439` ` ` yaml
396440Type : System.TimeSpan
397- Parameter Sets : (All)
441+ Parameter Sets : CreateExpanded
398442Aliases :
399443
400444Required : False
@@ -442,7 +486,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
442486
443487## OUTPUTS
444488
445- ### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Models.Api20210801. IScheduledQueryRuleResource
489+ ### Microsoft.Azure.PowerShell.Cmdlets.Monitor.ScheduledQueryRule.Models.IScheduledQueryRuleResource
446490
447491## NOTES
448492
0 commit comments