ArmMaintenanceModelFactory.MaintenanceConfigurationData Method

Definition

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, 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, System.Collections.Generic.IDictionary<string,string> tags = default);
static member MaintenanceConfigurationData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * 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 * System.Collections.Generic.IDictionary<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 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, Optional tags As IDictionary(Of String, String) = Nothing) As MaintenanceConfigurationData

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

location
AzureLocation

The geo-location where the resource lives.

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
Nullable<TimeSpan>

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.

tags
IDictionary<String,String>

Gets or sets tags of the resource.

Returns

A new MaintenanceConfigurationData instance for mocking.

Applies to