New-AzScheduledQueryRuleSchedule

Creates an object of type Schedule

Syntax

New-AzScheduledQueryRuleSchedule
   -FrequencyInMinutes <Int32>
   -TimeWindowInMinutes <Int32>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Creates an object of type Schedule. This object is to be passed to the command that creates Log Alert Rule.

Examples

Example 1

PS C:\>  $schedule = New-AzScheduledQueryRuleSchedule -FrequencyInMinutes 15 -TimeWindowInMinutes 15

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FrequencyInMinutes

The alert frequency

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TimeWindowInMinutes

The alert time window

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Azure.Commands.Insights.OutputClasses.PSScheduledQueryRuleSchedule