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>]
Description
建立 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