ArmMaintenanceModelFactory.MaintenanceConfigurationData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of MaintenanceConfigurationData.
public static Azure.ResourceManager.Maintenance.MaintenanceConfigurationData MaintenanceConfigurationData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, string namespace = default, System.Collections.Generic.IDictionary<string,string> extensionProperties = default, Azure.ResourceManager.Maintenance.Models.MaintenanceScope? maintenanceScope = default, Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationVisibility? visibility = default, Azure.ResourceManager.Maintenance.Models.MaintenancePatchConfiguration installPatches = default, DateTimeOffset? startOn = default, DateTimeOffset? expireOn = default, TimeSpan? duration = default, string timeZone = default, string recurEvery = default);
static member MaintenanceConfigurationData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * string * System.Collections.Generic.IDictionary<string, string> * Nullable<Azure.ResourceManager.Maintenance.Models.MaintenanceScope> * Nullable<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationVisibility> * Azure.ResourceManager.Maintenance.Models.MaintenancePatchConfiguration * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<TimeSpan> * string * string -> Azure.ResourceManager.Maintenance.MaintenanceConfigurationData
Public Shared Function MaintenanceConfigurationData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional namespace As String = Nothing, Optional extensionProperties As IDictionary(Of String, String) = Nothing, Optional maintenanceScope As Nullable(Of MaintenanceScope) = Nothing, Optional visibility As Nullable(Of MaintenanceConfigurationVisibility) = Nothing, Optional installPatches As MaintenancePatchConfiguration = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional expireOn As Nullable(Of DateTimeOffset) = Nothing, Optional duration As Nullable(Of TimeSpan) = Nothing, Optional timeZone As String = Nothing, Optional recurEvery As String = Nothing) As MaintenanceConfigurationData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- tags
- IDictionary<String,String>
The tags.
- location
- AzureLocation
The location.
- namespace
- String
Gets or sets namespace of the resource.
- extensionProperties
- IDictionary<String,String>
Gets or sets extensionProperties of the maintenanceConfiguration.
- maintenanceScope
- Nullable<MaintenanceScope>
Gets or sets maintenanceScope of the configuration.
- visibility
- Nullable<MaintenanceConfigurationVisibility>
Gets or sets the visibility of the configuration. The default value is 'Custom'.
- installPatches
- MaintenancePatchConfiguration
The input parameters to be passed to the patch run operation.
- startOn
- Nullable<DateTimeOffset>
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.
- expireOn
- Nullable<DateTimeOffset>
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 of the maintenance window in HH:mm format. If not provided, default value will be used based on maintenance scope provided. Example: 05:00.
- timeZone
- String
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.
- recurEvery
- String
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] [Optional Offset(No. of days)]. Offset value must be between -6 to 6 inclusive. Monthly schedule examples are recurEvery: Month, recurEvery: 2Months, recurEvery: Month day23,day24, recurEvery: Month Last Sunday, recurEvery: Month Fourth Monday, recurEvery: Month Last Sunday Offset-3, recurEvery: Month Third Sunday Offset6.
Returns
A new MaintenanceConfigurationData instance for mocking.