你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzPurviewTriggerObject

Create an in-memory object for Trigger.

Syntax

New-AzPurviewTriggerObject
   [-IncrementalScanStartTime <DateTime>]
   [-Interval <Int32>]
   [-RecurrenceEndTime <DateTime>]
   [-RecurrenceFrequency <TriggerFrequency>]
   [-RecurrenceInterval <String>]
   [-RecurrenceStartTime <DateTime>]
   [-RecurrenceTimeZone <String>]
   [-ScanLevel <ScanLevelType>]
   [-ScheduleAdditionalProperty <IRecurrenceScheduleAdditionalProperties>]
   [-ScheduleHour <Int32[]>]
   [-ScheduleMinute <Int32[]>]
   [-ScheduleMonthDay <Int32[]>]
   [-ScheduleMonthlyOccurrence <IRecurrenceScheduleOccurrence[]>]
   [-ScheduleWeekDay <DaysOfWeek[]>]
   [<CommonParameters>]

Description

Create an in-memory object for Trigger.

Examples

Example 1: Create trigger object

New-AzPurviewTriggerObject -RecurrenceEndTime '7/20/2022 12:00:00 AM' -RecurrenceStartTime '2/17/2022 1:32:00 PM' -Interval 1 -RecurrenceFrequency 'Month' -ScanLevel 'Full' -ScheduleHour $(9) -ScheduleMinute $(0) -ScheduleMonthDay $(10)

CreatedAt                  :
Id                         :
IncrementalScanStartTime   :
Interval                   : 1
LastModifiedAt             :
LastScheduled              :
Name                       :
RecurrenceEndTime          : 7/20/2022 12:00:00 AM
RecurrenceFrequency        : Month
RecurrenceInterval         :
RecurrenceStartTime        : 2/17/2022 1:32:00 PM
RecurrenceTimeZone         :
ResourceGroupName          :
ScanLevel                  : Full
ScheduleAdditionalProperty : {
                             }
ScheduleHour               : {9}
ScheduleMinute             : {0}
ScheduleMonthDay           : {10}
ScheduleMonthlyOccurrence  :
ScheduleWeekDay            :

Create trigger object

Parameters

-IncrementalScanStartTime

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

-Interval

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

-RecurrenceEndTime

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

-RecurrenceFrequency

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

-RecurrenceInterval

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

-RecurrenceStartTime

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

-RecurrenceTimeZone

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

-ScanLevel

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

-ScheduleAdditionalProperty

Dictionary of <any>. To construct, see NOTES section for SCHEDULEADDITIONALPROPERTY properties and create a hash table.

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

-ScheduleHour

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

-ScheduleMinute

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

-ScheduleMonthDay

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

-ScheduleMonthlyOccurrence

To construct, see NOTES section for SCHEDULEMONTHLYOCCURRENCE properties and create a hash table.

Type:IRecurrenceScheduleOccurrence[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ScheduleWeekDay

Type:DaysOfWeek[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Trigger