你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzPurviewTriggerObject
语法
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>]
说明
为 Trigger 创建内存中对象。
示例
示例 1:创建触发器对象
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 :
创建触发器对象
参数
-IncrementalScanStartTime
类型: | DateTime |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Interval
类型: | Int32 |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-RecurrenceEndTime
类型: | DateTime |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-RecurrenceFrequency
-RecurrenceInterval
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-RecurrenceStartTime
类型: | DateTime |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-RecurrenceTimeZone
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ScanLevel
类型: | ScanLevelType |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ScheduleAdditionalProperty
任何><字典。
若要构造,请参阅 SCHEDULEADDITIONALPROPERTY 属性的 NOTES 部分并创建哈希表。
-ScheduleHour
类型: | Int32[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ScheduleMinute
类型: | Int32[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ScheduleMonthDay
类型: | Int32[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ScheduleMonthlyOccurrence
若要构造,请参阅 SCHEDULEMONTHLYOCCURRENCE 属性的 NOTES 部分并创建哈希表。
-ScheduleWeekDay
类型: | DaysOfWeek[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输出
Trigger