ArmContainerServiceModelFactory.MaintenanceWindowResourceProperties Method

Definition

public static Azure.ResourceManager.ContainerService.Models.MaintenanceWindowResourceProperties MaintenanceWindowResourceProperties(Azure.ResourceManager.ContainerService.Models.ContainerServiceProvisioningState? provisioningState = default, Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceSchedule schedule = default, DateTimeOffset? startOn = default, string startTime = default, int durationHours = 0, string utcOffset = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerService.Models.ContainerServiceDateSpan> notAllowedDates = default);
static member MaintenanceWindowResourceProperties : Nullable<Azure.ResourceManager.ContainerService.Models.ContainerServiceProvisioningState> * Azure.ResourceManager.ContainerService.Models.ContainerServiceMaintenanceSchedule * Nullable<DateTimeOffset> * string * int * string * seq<Azure.ResourceManager.ContainerService.Models.ContainerServiceDateSpan> -> Azure.ResourceManager.ContainerService.Models.MaintenanceWindowResourceProperties
Public Shared Function MaintenanceWindowResourceProperties (Optional provisioningState As Nullable(Of ContainerServiceProvisioningState) = Nothing, Optional schedule As ContainerServiceMaintenanceSchedule = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional startTime As String = Nothing, Optional durationHours As Integer = 0, Optional utcOffset As String = Nothing, Optional notAllowedDates As IEnumerable(Of ContainerServiceDateSpan) = Nothing) As MaintenanceWindowResourceProperties

Parameters

provisioningState
Nullable<ContainerServiceProvisioningState>

The provisioning state of the maintenance window.

schedule
ContainerServiceMaintenanceSchedule

Recurrence schedule for the maintenance window. One and only one of the schedule types should be specified: 'daily', 'weekly', 'absoluteMonthly', or 'relativeMonthly'.

startOn
Nullable<DateTimeOffset>

The date the maintenance window activates. If the current date is before this date, the maintenance window is inactive and will not be used. If not specified, the maintenance window will be active right away.

startTime
String

The start time of the maintenance window. Accepted values are from '00:00' to '23:59'. 'utcOffset' applies to this field. For example: '02:00' with 'utcOffset: +02:00' means UTC time '00:00'.

durationHours
Int32

Length of the maintenance window in hours.

utcOffset
String

The UTC offset in format +/-HH:mm. For example, '+05:30' for IST and '-07:00' for PST. If not specified, the default is '+00:00'. Note: this is a static offset and does not adjust for Daylight Saving Time. Customers in DST-observing regions should pick the offset that matches their preferred wall-clock time year-round; the maintenance window will shift by one hour relative to local time when DST starts or ends.

notAllowedDates
IEnumerable<ContainerServiceDateSpan>

Date ranges during which maintenance is not allowed. 'utcOffset' applies to these dates. For example, with 'utcOffset: +02:00' and a date span of '2026-12-23' to '2027-01-03', maintenance will be blocked from '2026-12-22 22:00' to '2027-01-03 22:00' in UTC time.

Returns

A new MaintenanceWindowResourceProperties instance for mocking.

Applies to