Maintenance configuration record type
Uses Azure REST API version 2023-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2022-11-01-preview.
Other available API versions: 2022-11-01-preview, 2023-04-01, 2023-09-01-preview, 2025-10-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native maintenance [ApiVersion]. See the version guide for details.
Example Usage
MaintenanceConfigurations_CreateOrUpdateForResource
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var maintenanceConfiguration = new AzureNative.Maintenance.MaintenanceConfiguration("maintenanceConfiguration", new()
{
Duration = "05:00",
ExpirationDateTime = "9999-12-31 00:00",
Location = "westus2",
MaintenanceScope = AzureNative.Maintenance.MaintenanceScope.OSImage,
Namespace = "Microsoft.Maintenance",
RecurEvery = "Day",
ResourceGroupName = "examplerg",
ResourceName = "configuration1",
StartDateTime = "2020-04-30 08:00",
TimeZone = "Pacific Standard Time",
Visibility = AzureNative.Maintenance.Visibility.Custom,
});
});
package main
import (
maintenance "github.com/pulumi/pulumi-azure-native-sdk/maintenance/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := maintenance.NewMaintenanceConfiguration(ctx, "maintenanceConfiguration", &maintenance.MaintenanceConfigurationArgs{
Duration: pulumi.String("05:00"),
ExpirationDateTime: pulumi.String("9999-12-31 00:00"),
Location: pulumi.String("westus2"),
MaintenanceScope: pulumi.String(maintenance.MaintenanceScopeOSImage),
Namespace: pulumi.String("Microsoft.Maintenance"),
RecurEvery: pulumi.String("Day"),
ResourceGroupName: pulumi.String("examplerg"),
ResourceName: pulumi.String("configuration1"),
StartDateTime: pulumi.String("2020-04-30 08:00"),
TimeZone: pulumi.String("Pacific Standard Time"),
Visibility: pulumi.String(maintenance.VisibilityCustom),
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_maintenance_maintenance_configuration" "maintenanceConfiguration" {
lifecycle {
create_before_destroy = true
}
duration = "05:00"
expiration_date_time = "9999-12-31 00:00"
location = "westus2"
maintenance_scope = "OSImage"
namespace = "Microsoft.Maintenance"
recur_every = "Day"
resource_group_name = "examplerg"
resource_name = "configuration1"
start_date_time = "2020-04-30 08:00"
time_zone = "Pacific Standard Time"
visibility = "Custom"
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.maintenance.MaintenanceConfiguration;
import com.pulumi.azurenative.maintenance.MaintenanceConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var maintenanceConfiguration = new MaintenanceConfiguration("maintenanceConfiguration", MaintenanceConfigurationArgs.builder()
.duration("05:00")
.expirationDateTime("9999-12-31 00:00")
.location("westus2")
.maintenanceScope("OSImage")
.namespace("Microsoft.Maintenance")
.recurEvery("Day")
.resourceGroupName("examplerg")
.resourceName("configuration1")
.startDateTime("2020-04-30 08:00")
.timeZone("Pacific Standard Time")
.visibility("Custom")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const maintenanceConfiguration = new azure_native.maintenance.MaintenanceConfiguration("maintenanceConfiguration", {
duration: "05:00",
expirationDateTime: "9999-12-31 00:00",
location: "westus2",
maintenanceScope: azure_native.maintenance.MaintenanceScope.OSImage,
namespace: "Microsoft.Maintenance",
recurEvery: "Day",
resourceGroupName: "examplerg",
resourceName: "configuration1",
startDateTime: "2020-04-30 08:00",
timeZone: "Pacific Standard Time",
visibility: azure_native.maintenance.Visibility.Custom,
});
import pulumi
import pulumi_azure_native as azure_native
maintenance_configuration = azure_native.maintenance.MaintenanceConfiguration("maintenanceConfiguration",
duration="05:00",
expiration_date_time="9999-12-31 00:00",
location="westus2",
maintenance_scope=azure_native.maintenance.MaintenanceScope.OS_IMAGE,
namespace="Microsoft.Maintenance",
recur_every="Day",
resource_group_name="examplerg",
resource_name_="configuration1",
start_date_time="2020-04-30 08:00",
time_zone="Pacific Standard Time",
visibility=azure_native.maintenance.Visibility.CUSTOM)
resources:
maintenanceConfiguration:
type: azure-native:maintenance:MaintenanceConfiguration
properties:
duration: 05:00
expirationDateTime: 9999-12-31 00:00
location: westus2
maintenanceScope: OSImage
namespace: Microsoft.Maintenance
recurEvery: Day
resourceGroupName: examplerg
resourceName: configuration1
startDateTime: 2020-04-30 08:00
timeZone: Pacific Standard Time
visibility: Custom
Create MaintenanceConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def MaintenanceConfiguration(resource_name: str,
args: MaintenanceConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MaintenanceConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
namespace: Optional[str] = None,
extension_properties: Optional[Mapping[str, str]] = None,
install_patches: Optional[InputPatchConfigurationArgs] = None,
location: Optional[str] = None,
maintenance_scope: Optional[Union[str, MaintenanceScope]] = None,
duration: Optional[str] = None,
recur_every: Optional[str] = None,
expiration_date_time: Optional[str] = None,
resource_name_: Optional[str] = None,
start_date_time: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
time_zone: Optional[str] = None,
visibility: Optional[Union[str, Visibility]] = None)
type: azure-native:maintenance:MaintenanceConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_maintenance_maintenance_configuration" "name" {
# resource properties
}
Parameters
- name
String
- The unique name of the resource.
- args
MaintenanceConfigurationArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var examplemaintenanceConfigurationResourceResourceFromMaintenance = new AzureNative.Maintenance.MaintenanceConfiguration("examplemaintenanceConfigurationResourceResourceFromMaintenance", new()
{
ResourceGroupName = "string",
Namespace = "string",
ExtensionProperties =
{
{ "string", "string" },
},
InstallPatches = new AzureNative.Maintenance.Inputs.InputPatchConfigurationArgs
{
LinuxParameters = new AzureNative.Maintenance.Inputs.InputLinuxParametersArgs
{
ClassificationsToInclude = new[]
{
"string",
},
PackageNameMasksToExclude = new[]
{
"string",
},
PackageNameMasksToInclude = new[]
{
"string",
},
},
RebootSetting = "string",
WindowsParameters = new AzureNative.Maintenance.Inputs.InputWindowsParametersArgs
{
ClassificationsToInclude = new[]
{
"string",
},
ExcludeKbsRequiringReboot = false,
KbNumbersToExclude = new[]
{
"string",
},
KbNumbersToInclude = new[]
{
"string",
},
},
},
Location = "string",
MaintenanceScope = "string",
Duration = "string",
RecurEvery = "string",
ExpirationDateTime = "string",
ResourceName = "string",
StartDateTime = "string",
Tags =
{
{ "string", "string" },
},
TimeZone = "string",
Visibility = "string",
});
example, err := maintenance.NewMaintenanceConfiguration(ctx, "examplemaintenanceConfigurationResourceResourceFromMaintenance", &maintenance.MaintenanceConfigurationArgs{
ResourceGroupName: pulumi.String("string"),
Namespace: pulumi.String("string"),
ExtensionProperties: pulumi.StringMap{
"string": pulumi.String("string"),
},
InstallPatches: &maintenance.InputPatchConfigurationArgs{
LinuxParameters: &maintenance.InputLinuxParametersArgs{
ClassificationsToInclude: pulumi.StringArray{
pulumi.String("string"),
},
PackageNameMasksToExclude: pulumi.StringArray{
pulumi.String("string"),
},
PackageNameMasksToInclude: pulumi.StringArray{
pulumi.String("string"),
},
},
RebootSetting: pulumi.String("string"),
WindowsParameters: &maintenance.InputWindowsParametersArgs{
ClassificationsToInclude: pulumi.StringArray{
pulumi.String("string"),
},
ExcludeKbsRequiringReboot: pulumi.Bool(false),
KbNumbersToExclude: pulumi.StringArray{
pulumi.String("string"),
},
KbNumbersToInclude: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Location: pulumi.String("string"),
MaintenanceScope: pulumi.String("string"),
Duration: pulumi.String("string"),
RecurEvery: pulumi.String("string"),
ExpirationDateTime: pulumi.String("string"),
ResourceName: pulumi.String("string"),
StartDateTime: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TimeZone: pulumi.String("string"),
Visibility: pulumi.String("string"),
})
resource "azure-native_maintenance_maintenance_configuration" "examplemaintenanceConfigurationResourceResourceFromMaintenance" {
lifecycle {
create_before_destroy = true
}
resource_group_name = "string"
namespace = "string"
extension_properties = {
"string" = "string"
}
install_patches = {
linux_parameters = {
classifications_to_include = ["string"]
package_name_masks_to_exclude = ["string"]
package_name_masks_to_include = ["string"]
}
reboot_setting = "string"
windows_parameters = {
classifications_to_include = ["string"]
exclude_kbs_requiring_reboot = false
kb_numbers_to_exclude = ["string"]
kb_numbers_to_include = ["string"]
}
}
location = "string"
maintenance_scope = "string"
duration = "string"
recur_every = "string"
expiration_date_time = "string"
resource_name = "string"
start_date_time = "string"
tags = {
"string" = "string"
}
time_zone = "string"
visibility = "string"
}
var examplemaintenanceConfigurationResourceResourceFromMaintenance = new com.pulumi.azurenative.maintenance.MaintenanceConfiguration("examplemaintenanceConfigurationResourceResourceFromMaintenance", com.pulumi.azurenative.maintenance.MaintenanceConfigurationArgs.builder()
.resourceGroupName("string")
.namespace("string")
.extensionProperties(Map.of("string", "string"))
.installPatches(InputPatchConfigurationArgs.builder()
.linuxParameters(InputLinuxParametersArgs.builder()
.classificationsToInclude("string")
.packageNameMasksToExclude("string")
.packageNameMasksToInclude("string")
.build())
.rebootSetting("string")
.windowsParameters(InputWindowsParametersArgs.builder()
.classificationsToInclude("string")
.excludeKbsRequiringReboot(false)
.kbNumbersToExclude("string")
.kbNumbersToInclude("string")
.build())
.build())
.location("string")
.maintenanceScope("string")
.duration("string")
.recurEvery("string")
.expirationDateTime("string")
.resourceName("string")
.startDateTime("string")
.tags(Map.of("string", "string"))
.timeZone("string")
.visibility("string")
.build());
examplemaintenance_configuration_resource_resource_from_maintenance = azure_native.maintenance.MaintenanceConfiguration("examplemaintenanceConfigurationResourceResourceFromMaintenance",
resource_group_name="string",
namespace="string",
extension_properties={
"string": "string",
},
install_patches={
"linux_parameters": {
"classifications_to_include": ["string"],
"package_name_masks_to_exclude": ["string"],
"package_name_masks_to_include": ["string"],
},
"reboot_setting": "string",
"windows_parameters": {
"classifications_to_include": ["string"],
"exclude_kbs_requiring_reboot": False,
"kb_numbers_to_exclude": ["string"],
"kb_numbers_to_include": ["string"],
},
},
location="string",
maintenance_scope="string",
duration="string",
recur_every="string",
expiration_date_time="string",
resource_name_="string",
start_date_time="string",
tags={
"string": "string",
},
time_zone="string",
visibility="string")
const examplemaintenanceConfigurationResourceResourceFromMaintenance = new azure_native.maintenance.MaintenanceConfiguration("examplemaintenanceConfigurationResourceResourceFromMaintenance", {
resourceGroupName: "string",
namespace: "string",
extensionProperties: {
string: "string",
},
installPatches: {
linuxParameters: {
classificationsToInclude: ["string"],
packageNameMasksToExclude: ["string"],
packageNameMasksToInclude: ["string"],
},
rebootSetting: "string",
windowsParameters: {
classificationsToInclude: ["string"],
excludeKbsRequiringReboot: false,
kbNumbersToExclude: ["string"],
kbNumbersToInclude: ["string"],
},
},
location: "string",
maintenanceScope: "string",
duration: "string",
recurEvery: "string",
expirationDateTime: "string",
resourceName: "string",
startDateTime: "string",
tags: {
string: "string",
},
timeZone: "string",
visibility: "string",
});
type: azure-native:maintenance:MaintenanceConfiguration
properties:
duration: string
expirationDateTime: string
extensionProperties:
string: string
installPatches:
linuxParameters:
classificationsToInclude:
- string
packageNameMasksToExclude:
- string
packageNameMasksToInclude:
- string
rebootSetting: string
windowsParameters:
classificationsToInclude:
- string
excludeKbsRequiringReboot: false
kbNumbersToExclude:
- string
kbNumbersToInclude:
- string
location: string
maintenanceScope: string
namespace: string
recurEvery: string
resourceGroupName: string
resourceName: string
startDateTime: string
tags:
string: string
timeZone: string
visibility: string
MaintenanceConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MaintenanceConfiguration resource accepts the following input properties:
- ResourceGroupName
string
- The name of the resource group. The name is case insensitive.
- Duration
string
- 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.
- ExpirationDateTime
string
- 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.
- ExtensionProperties
Dictionary<string, string>
- Gets or sets extensionProperties of the maintenanceConfiguration
- InstallPatches
Pulumi.AzureNative.Maintenance.Inputs.InputPatchConfiguration
- The input parameters to be passed to the patch run operation.
- Location
string
- Gets or sets location of the resource
- MaintenanceScope
string | Pulumi.AzureNative.Maintenance.MaintenanceScope
- Gets or sets maintenanceScope of the configuration
- Namespace
string
- Gets or sets namespace of the resource
- 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.
- ResourceName
string
- The name of the MaintenanceConfiguration
- StartDateTime
string
- 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.
- Tags
Dictionary<string, string>
- Gets or sets tags of the resource
- 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.
- Visibility
string | Pulumi.AzureNative.Maintenance.Visibility
- Gets or sets the visibility of the configuration. The default value is 'Custom'
- ResourceGroupName
string
- The name of the resource group. The name is case insensitive.
- Duration
string
- 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.
- ExpirationDateTime
string
- 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.
- ExtensionProperties
map[string]string
- Gets or sets extensionProperties of the maintenanceConfiguration
- InstallPatches
InputPatchConfigurationArgs
- The input parameters to be passed to the patch run operation.
- Location
string
- Gets or sets location of the resource
- MaintenanceScope
string | MaintenanceScope
- Gets or sets maintenanceScope of the configuration
- Namespace
string
- Gets or sets namespace of the resource
- 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.
- ResourceName
string
- The name of the MaintenanceConfiguration
- StartDateTime
string
- 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.
- Tags
map[string]string
- Gets or sets tags of the resource
- 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.
- Visibility
string | Visibility
- Gets or sets the visibility of the configuration. The default value is 'Custom'
- resource_group_name
string
- The name of the resource group. The name is case insensitive.
- duration
string
- 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.
- expiration_date_time
string
- 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.
- extension_properties
map(string)
- Gets or sets extensionProperties of the maintenanceConfiguration
- install_patches
object
- The input parameters to be passed to the patch run operation.
- location
string
- Gets or sets location of the resource
- maintenance_scope
string | "Host" | "Resource" | "OSImage" | "Extension" | "InGuestPatch" | "SQLDB" | "SQLManagedInstance"
- Gets or sets maintenanceScope of the configuration
- namespace
string
- Gets or sets namespace of the resource
- recur_every
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.
- resource_name
string
- The name of the MaintenanceConfiguration
- start_date_time
string
- 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.
- tags
map(string)
- Gets or sets tags of the resource
- time_zone
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.
- visibility
string | "Custom" | "Public"
- Gets or sets the visibility of the configuration. The default value is 'Custom'
- resourceGroupName
String
- The name of the resource group. The name is case insensitive.
- duration
String
- 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.
- expirationDateTime
String
- 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.
- extensionProperties
Map<String,String>
- Gets or sets extensionProperties of the maintenanceConfiguration
- installPatches
InputPatchConfiguration
- The input parameters to be passed to the patch run operation.
- location
String
- Gets or sets location of the resource
- maintenanceScope
String | MaintenanceScope
- Gets or sets maintenanceScope of the configuration
- namespace
String
- Gets or sets namespace of the resource
- 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.
- resourceName
String
- The name of the MaintenanceConfiguration
- startDateTime
String
- 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.
- tags
Map<String,String>
- Gets or sets tags of the resource
- 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.
- visibility
String | Visibility
- Gets or sets the visibility of the configuration. The default value is 'Custom'
- resourceGroupName
string
- The name of the resource group. The name is case insensitive.
- duration
string
- 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.
- expirationDateTime
string
- 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.
- extensionProperties
{[key: string]: string}
- Gets or sets extensionProperties of the maintenanceConfiguration
- installPatches
InputPatchConfiguration
- The input parameters to be passed to the patch run operation.
- location
string
- Gets or sets location of the resource
- maintenanceScope
string | MaintenanceScope
- Gets or sets maintenanceScope of the configuration
- namespace
string
- Gets or sets namespace of the resource
- 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.
- resourceName
string
- The name of the MaintenanceConfiguration
- startDateTime
string
- 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.
- tags
{[key: string]: string}
- Gets or sets tags of the resource
- 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.
- visibility
string | Visibility
- Gets or sets the visibility of the configuration. The default value is 'Custom'
- resource_group_name
str
- The name of the resource group. The name is case insensitive.
- 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.
- 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.
- extension_properties
Mapping[str, str]
- Gets or sets extensionProperties of the maintenanceConfiguration
- install_patches
InputPatchConfigurationArgs
- The input parameters to be passed to the patch run operation.
- location
str
- Gets or sets location of the resource
- maintenance_scope
str | MaintenanceScope
- Gets or sets maintenanceScope of the configuration
- namespace
str
- Gets or sets namespace of the resource
- 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] [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.
- resource_name
str
- The name of the MaintenanceConfiguration
- 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.
- tags
Mapping[str, str]
- Gets or sets tags of the resource
- 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.
- visibility
str | Visibility
- Gets or sets the visibility of the configuration. The default value is 'Custom'
- resourceGroupName
String
- The name of the resource group. The name is case insensitive.
- duration
String
- 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.
- expirationDateTime
String
- 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.
- extensionProperties
Map<String>
- Gets or sets extensionProperties of the maintenanceConfiguration
- installPatches
Property Map
- The input parameters to be passed to the patch run operation.
- location
String
- Gets or sets location of the resource
- maintenanceScope
String | "Host" | "Resource" | "OSImage" | "Extension" | "InGuestPatch" | "SQLDB" | "SQLManagedInstance"
- Gets or sets maintenanceScope of the configuration
- namespace
String
- Gets or sets namespace of the resource
- 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.
- resourceName
String
- The name of the MaintenanceConfiguration
- startDateTime
String
- 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.
- tags
Map<String>
- Gets or sets tags of the resource
- 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.
- visibility
String | "Custom" | "Public"
- Gets or sets the visibility of the configuration. The default value is 'Custom'
Outputs
All input properties are implicitly available as output properties. Additionally, the MaintenanceConfiguration resource produces the following output properties:
- AzureApiVersion
string
- The Azure API version of the resource.
- Id
string
- The provider-assigned unique ID for this managed resource.
- Name
string
- The name of the resource
- SystemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_api_version
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- name
string
- The name of the resource
- system_data
object
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- name
String
- The name of the resource
- systemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- name
string
- The name of the resource
- systemData
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_api_version
str
- The Azure API version of the resource.
- id
str
- The provider-assigned unique ID for this managed resource.
- name
str
- The name of the resource
- system_data
SystemDataResponse
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- name
String
- The name of the resource
- systemData
Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type
String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Look up Existing MaintenanceConfiguration Resource
Get an existing MaintenanceConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
func GetMaintenanceConfiguration(ctx *Context, name string, id IDInput, state *MaintenanceConfigurationState, opts ...ResourceOption) (*MaintenanceConfiguration, error)
public static MaintenanceConfiguration get(String name, Output<String> id, CustomResourceOptions options)
resources: existingMaintenanceConfiguration: type: azure-native:maintenance:MaintenanceConfiguration get: id: ${id}
import {
to = azure-native_maintenance_maintenance_configuration.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
MaintenanceConfigurationState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
Input properties for patching a Linux machine.Input properties for patching a Linux machine.Input configuration for a patch runInput configuration for a patch run- linux_parameters
object
- Input parameters specific to patching Linux machine. For Windows machines, do not pass this property.
- reboot_setting
string
- Possible reboot preference as defined by the user based on which it would be decided to reboot the machine or not after the patch operation is completed.
- windows_parameters
object
- Input parameters specific to patching a Windows machine. For Linux machines, do not pass this property.
- linuxParameters
Property Map
- Input parameters specific to patching Linux machine. For Windows machines, do not pass this property.
- rebootSetting
String
- Possible reboot preference as defined by the user based on which it would be decided to reboot the machine or not after the patch operation is completed.
- windowsParameters
Property Map
- Input parameters specific to patching a Windows machine. For Linux machines, do not pass this property.
Input properties for patching a Windows machine.Input properties for patching a Windows machine.MaintenanceScope, MaintenanceScopeArgs
Gets or sets maintenanceScope of the configuration| Name | Value | Description |
|---|
| Host | Host | This maintenance scope controls installation of azure platform updates i.e. services on physical nodes hosting customer VMs. |
| Resource | Resource | This maintenance scope controls the default update maintenance of the Azure Resource |
| OSImage | OSImage | This maintenance scope controls os image installation on VM/VMSS |
| Extension | Extension | This maintenance scope controls extension installation on VM/VMSS |
| InGuestPatch | InGuestPatch | This maintenance scope controls installation of windows and linux packages on VM/VMSS |
| SQLDB | SQLDB | This maintenance scope controls installation of SQL server platform updates. |
| SQLManagedInstance | SQLManagedInstance | This maintenance scope controls installation of SQL managed instance platform update. |
| Name | Value | Description |
|---|
| MaintenanceScopeHost | Host | This maintenance scope controls installation of azure platform updates i.e. services on physical nodes hosting customer VMs. |
| MaintenanceScopeResource | Resource | This maintenance scope controls the default update maintenance of the Azure Resource |
| MaintenanceScopeOSImage | OSImage | This maintenance scope controls os image installation on VM/VMSS |
| MaintenanceScopeExtension | Extension | This maintenance scope controls extension installation on VM/VMSS |
| MaintenanceScopeInGuestPatch | InGuestPatch | This maintenance scope controls installation of windows and linux packages on VM/VMSS |
| MaintenanceScopeSQLDB | SQLDB | This maintenance scope controls installation of SQL server platform updates. |
| MaintenanceScopeSQLManagedInstance | SQLManagedInstance | This maintenance scope controls installation of SQL managed instance platform update. |
| Value | Description |
|---|
Host | This maintenance scope controls installation of azure platform updates i.e. services on physical nodes hosting customer VMs. |
Resource | This maintenance scope controls the default update maintenance of the Azure Resource |
OSImage | This maintenance scope controls os image installation on VM/VMSS |
Extension | This maintenance scope controls extension installation on VM/VMSS |
InGuestPatch | This maintenance scope controls installation of windows and linux packages on VM/VMSS |
SQLDB | This maintenance scope controls installation of SQL server platform updates. |
SQLManagedInstance | This maintenance scope controls installation of SQL managed instance platform update. |
| Name | Value | Description |
|---|
| Host | Host | This maintenance scope controls installation of azure platform updates i.e. services on physical nodes hosting customer VMs. |
| Resource | Resource | This maintenance scope controls the default update maintenance of the Azure Resource |
| OSImage | OSImage | This maintenance scope controls os image installation on VM/VMSS |
| Extension | Extension | This maintenance scope controls extension installation on VM/VMSS |
| InGuestPatch | InGuestPatch | This maintenance scope controls installation of windows and linux packages on VM/VMSS |
| SQLDB | SQLDB | This maintenance scope controls installation of SQL server platform updates. |
| SQLManagedInstance | SQLManagedInstance | This maintenance scope controls installation of SQL managed instance platform update. |
| Name | Value | Description |
|---|
| Host | Host | This maintenance scope controls installation of azure platform updates i.e. services on physical nodes hosting customer VMs. |
| Resource | Resource | This maintenance scope controls the default update maintenance of the Azure Resource |
| OSImage | OSImage | This maintenance scope controls os image installation on VM/VMSS |
| Extension | Extension | This maintenance scope controls extension installation on VM/VMSS |
| InGuestPatch | InGuestPatch | This maintenance scope controls installation of windows and linux packages on VM/VMSS |
| SQLDB | SQLDB | This maintenance scope controls installation of SQL server platform updates. |
| SQLManagedInstance | SQLManagedInstance | This maintenance scope controls installation of SQL managed instance platform update. |
| Name | Value | Description |
|---|
| HOST | Host | This maintenance scope controls installation of azure platform updates i.e. services on physical nodes hosting customer VMs. |
| RESOURCE | Resource | This maintenance scope controls the default update maintenance of the Azure Resource |
| OS_IMAGE | OSImage | This maintenance scope controls os image installation on VM/VMSS |
| EXTENSION | Extension | This maintenance scope controls extension installation on VM/VMSS |
| IN_GUEST_PATCH | InGuestPatch | This maintenance scope controls installation of windows and linux packages on VM/VMSS |
| SQLDB | SQLDB | This maintenance scope controls installation of SQL server platform updates. |
| SQL_MANAGED_INSTANCE | SQLManagedInstance | This maintenance scope controls installation of SQL managed instance platform update. |
| Value | Description |
|---|
Host | This maintenance scope controls installation of azure platform updates i.e. services on physical nodes hosting customer VMs. |
Resource | This maintenance scope controls the default update maintenance of the Azure Resource |
OSImage | This maintenance scope controls os image installation on VM/VMSS |
Extension | This maintenance scope controls extension installation on VM/VMSS |
InGuestPatch | This maintenance scope controls installation of windows and linux packages on VM/VMSS |
SQLDB | This maintenance scope controls installation of SQL server platform updates. |
SQLManagedInstance | This maintenance scope controls installation of SQL managed instance platform update. |
RebootOptions, RebootOptionsArgs
Possible reboot preference as defined by the user based on which it would be decided to reboot the machine or not after the patch operation is completed.| Name | Value |
|---|
| IfRequired | IfRequired |
| Never | Never |
| Always | Always |
| Name | Value |
|---|
| RebootOptionsIfRequired | IfRequired |
| RebootOptionsNever | Never |
| RebootOptionsAlways | Always |
| Value |
|---|
IfRequired |
Never |
Always |
| Name | Value |
|---|
| IfRequired | IfRequired |
| Never | Never |
| Always | Always |
| Name | Value |
|---|
| IfRequired | IfRequired |
| Never | Never |
| Always | Always |
| Name | Value |
|---|
| IF_REQUIRED | IfRequired |
| NEVER | Never |
| ALWAYS | Always |
| Value |
|---|
IfRequired |
Never |
Always |
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- CreatedAt
string
- The timestamp of resource creation (UTC).
- CreatedBy
string
- The identity that created the resource.
- CreatedByType
string
- The type of identity that created the resource.
- LastModifiedAt
string
- The timestamp of resource last modification (UTC)
- LastModifiedBy
string
- The identity that last modified the resource.
- LastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
- createdAt
string
- The timestamp of resource creation (UTC).
- createdBy
string
- The identity that created the resource.
- createdByType
string
- The type of identity that created the resource.
- lastModifiedAt
string
- The timestamp of resource last modification (UTC)
- lastModifiedBy
string
- The identity that last modified the resource.
- lastModifiedByType
string
- The type of identity that last modified the resource.
- createdAt
String
- The timestamp of resource creation (UTC).
- createdBy
String
- The identity that created the resource.
- createdByType
String
- The type of identity that created the resource.
- lastModifiedAt
String
- The timestamp of resource last modification (UTC)
- lastModifiedBy
String
- The identity that last modified the resource.
- lastModifiedByType
String
- The type of identity that last modified the resource.
Visibility, VisibilityArgs
Gets or sets the visibility of the configuration. The default value is 'Custom'| Name | Value | Description |
|---|
| Custom | Custom | Only visible to users with permissions. |
| Public | Public | Visible to all users. |
| Name | Value | Description |
|---|
| VisibilityCustom | Custom | Only visible to users with permissions. |
| VisibilityPublic | Public | Visible to all users. |
| Value | Description |
|---|
Custom | Only visible to users with permissions. |
Public | Visible to all users. |
| Name | Value | Description |
|---|
| Custom | Custom | Only visible to users with permissions. |
| Public | Public | Visible to all users. |
| Name | Value | Description |
|---|
| Custom | Custom | Only visible to users with permissions. |
| Public | Public | Visible to all users. |
| Name | Value | Description |
|---|
| CUSTOM | Custom | Only visible to users with permissions. |
| PUBLIC | Public | Visible to all users. |
| Value | Description |
|---|
Custom | Only visible to users with permissions. |
Public | Visible to all users. |
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:maintenance:MaintenanceConfiguration configuration1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0