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

New-AzAksTimeInWeekObject

Create an in-memory object for TimeInWeek.

Syntax

New-AzAksTimeInWeekObject
   [-Day <WeekDay>]
   [-HourSlot <Int32[]>]
   [<CommonParameters>]

Description

Create an in-memory object for TimeInWeek.

Examples

Example 1: Create an in-memory object for time in a week

New-AzAksTimeInWeekObject -Day 'Sunday' -HourSlot 1,2

Day    HourSlot
---    --------
Sunday {1, 2}

New-AzAksTimeInWeekObject creates an in-memory object of type TimeInWeek. This object represents time in a week. and will be used for parameter TimeInWeek in cmdlet New-AzAksMaintenanceConfiguration.

Parameters

-Day

The day of the week.

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

-HourSlot

Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.

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

Outputs

TimeInWeek