MaintenanceConfiguration Class
Maintenance configuration record type.
Variables are only populated by the server, and will be ignored when sending a request.
- Inheritance
-
azure.mgmt.maintenance.models._models_py3.ResourceMaintenanceConfiguration
Constructor
MaintenanceConfiguration(*, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, namespace: Optional[str] = None, extension_properties: Optional[Dict[str, str]] = None, maintenance_scope: Optional[Union[str, azure.mgmt.maintenance.models._maintenance_management_client_enums.MaintenanceScope]] = None, visibility: Optional[Union[str, azure.mgmt.maintenance.models._maintenance_management_client_enums.Visibility]] = None, start_date_time: Optional[str] = None, expiration_date_time: Optional[str] = None, duration: Optional[str] = None, time_zone: Optional[str] = None, recur_every: Optional[str] = None, **kwargs)
Parameters
Gets or sets extensionProperties of the maintenanceConfiguration.
- maintenance_scope
- str or MaintenanceScope
Gets or sets maintenanceScope of the configuration. Possible values include: "Host", "OSImage", "Extension", "InGuestPatch", "SQLDB", "SQLManagedInstance".
- visibility
- str or Visibility
Gets or sets the visibility of the configuration. The default value is 'Custom'. Possible values include: "Custom", "Public".
- start_date_time
- str
Effective start date of the maintenance window in YYYY-MM-DD hh:mm format. The start date can be set to either the current date or future date. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone.
- expiration_date_time
- str
Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format. The window will be created in the time zone provided and adjusted to daylight savings according to that time zone. Expiration date must be set to a future date. If not provided, it will be set to the maximum datetime 9999-12-31 23:59:59.
- duration
- str
Duration of the maintenance window in HH:mm format. If not provided, default value will be used based on maintenance scope provided. Example: 05:00.
- time_zone
- str
Name of the timezone. List of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. Example: Pacific Standard Time, UTC, W. Europe Standard Time, Korea Standard Time, Cen. Australia Standard Time.
- recur_every
- str
Rate at which a Maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules. Daily schedule are formatted as recurEvery: [Frequency as integer]['Day(s)']. If no frequency is provided, the default frequency is 1. Daily schedule examples are recurEvery: Day, recurEvery: 3Days. Weekly schedule are formatted as recurEvery: [Frequency as integer]['Week(s)'] [Optional comma separated list of weekdays Monday-Sunday]. Weekly schedule examples are recurEvery: 3Weeks, recurEvery: Week Saturday,Sunday. Monthly schedules are formatted as [Frequency as integer]['Month(s)'] [Comma separated list of month days] or [Frequency as integer]['Month(s)'] [Week of Month (First, Second, Third, Fourth, Last)] [Weekday Monday-Sunday]. Monthly schedule examples are recurEvery: Month, recurEvery: 2Months, recurEvery: Month day23,day24, recurEvery: Month Last Sunday, recurEvery: Month Fourth Monday.
Variables
- id
- str
Fully qualified identifier of the resource.
- name
- str
Name of the resource.
- type
- str
Type of the resource.
- system_data
- SystemData
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Feedback
Submit and view feedback for