Share via


MaintenanceWindow Class

Definition

Maintenance window used to configure scheduled auto-upgrade for a Managed Cluster.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.MaintenanceWindowTypeConverter))]
public class MaintenanceWindow : Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceWindow
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.MaintenanceWindowTypeConverter))>]
type MaintenanceWindow = class
    interface IMaintenanceWindow
    interface IJsonSerializable
Public Class MaintenanceWindow
Implements IMaintenanceWindow
Inheritance
MaintenanceWindow
Attributes
Implements

Constructors

Name Description
MaintenanceWindow()

Creates an new MaintenanceWindow instance.

Properties

Name Description
AbsoluteMonthlyDayOfMonth

The date of the month.

AbsoluteMonthlyIntervalMonth

Specifies the number of months between each set of occurrences.

DailyIntervalDay

Specifies the number of days between each set of occurrences.

DurationHour

Length of maintenance window range from 4 to 24 hours.

NotAllowedDate

Date ranges on which upgrade is not allowed. 'utcOffset' applies to this field. For example, with 'utcOffset: +02:00' and 'dateSpan' being '2022-12-23' to '2023-01-03', maintenance will be blocked from '2022-12-22 22:00' to '2023-01-03 22:00' in UTC time.

RelativeMonthlyDayOfWeek

Specifies on which day of the week the maintenance occurs.

RelativeMonthlyIntervalMonth

Specifies the number of months between each set of occurrences.

RelativeMonthlyWeekIndex

The week index. Specifies on which week of the month the dayOfWeek applies.

StartDate

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

StartTime

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'.

UtcOffset

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'.

WeeklyDayOfWeek

Specifies on which day of the week the maintenance occurs.

WeeklyIntervalWeek

Specifies the number of weeks between each set of occurrences.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of MaintenanceWindow.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of MaintenanceWindow.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.IMaintenanceWindow.

FromJsonString(String)

Creates a new instance of MaintenanceWindow, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of MaintenanceWindow into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to