We recommend using Azure Native.
azure.maintenance.Configuration
Explore with Pulumi AI
Manages a maintenance configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleConfiguration = new azure.maintenance.Configuration("example", {
    name: "example-mc",
    resourceGroupName: example.name,
    location: example.location,
    scope: "SQLDB",
    tags: {
        Env: "prod",
    },
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_configuration = azure.maintenance.Configuration("example",
    name="example-mc",
    resource_group_name=example.name,
    location=example.location,
    scope="SQLDB",
    tags={
        "Env": "prod",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/maintenance"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = maintenance.NewConfiguration(ctx, "example", &maintenance.ConfigurationArgs{
			Name:              pulumi.String("example-mc"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
			Scope:             pulumi.String("SQLDB"),
			Tags: pulumi.StringMap{
				"Env": pulumi.String("prod"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var exampleConfiguration = new Azure.Maintenance.Configuration("example", new()
    {
        Name = "example-mc",
        ResourceGroupName = example.Name,
        Location = example.Location,
        Scope = "SQLDB",
        Tags = 
        {
            { "Env", "prod" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.maintenance.Configuration;
import com.pulumi.azure.maintenance.ConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var exampleConfiguration = new Configuration("exampleConfiguration", ConfigurationArgs.builder()
            .name("example-mc")
            .resourceGroupName(example.name())
            .location(example.location())
            .scope("SQLDB")
            .tags(Map.of("Env", "prod"))
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleConfiguration:
    type: azure:maintenance:Configuration
    name: example
    properties:
      name: example-mc
      resourceGroupName: ${example.name}
      location: ${example.location}
      scope: SQLDB
      tags:
        Env: prod
Create Configuration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Configuration(name: string, args: ConfigurationArgs, opts?: CustomResourceOptions);@overload
def Configuration(resource_name: str,
                  args: ConfigurationArgs,
                  opts: Optional[ResourceOptions] = None)
@overload
def Configuration(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  resource_group_name: Optional[str] = None,
                  scope: Optional[str] = None,
                  in_guest_user_patch_mode: Optional[str] = None,
                  install_patches: Optional[ConfigurationInstallPatchesArgs] = None,
                  location: Optional[str] = None,
                  name: Optional[str] = None,
                  properties: Optional[Mapping[str, str]] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  visibility: Optional[str] = None,
                  window: Optional[ConfigurationWindowArgs] = None)func NewConfiguration(ctx *Context, name string, args ConfigurationArgs, opts ...ResourceOption) (*Configuration, error)public Configuration(string name, ConfigurationArgs args, CustomResourceOptions? opts = null)
public Configuration(String name, ConfigurationArgs args)
public Configuration(String name, ConfigurationArgs args, CustomResourceOptions options)
type: azure:maintenance:Configuration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- 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 resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigurationArgs
- 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 azureConfigurationResource = new Azure.Maintenance.Configuration("azureConfigurationResource", new()
{
    ResourceGroupName = "string",
    Scope = "string",
    InGuestUserPatchMode = "string",
    InstallPatches = new Azure.Maintenance.Inputs.ConfigurationInstallPatchesArgs
    {
        Linuxes = new[]
        {
            new Azure.Maintenance.Inputs.ConfigurationInstallPatchesLinuxArgs
            {
                ClassificationsToIncludes = new[]
                {
                    "string",
                },
                PackageNamesMaskToExcludes = new[]
                {
                    "string",
                },
                PackageNamesMaskToIncludes = new[]
                {
                    "string",
                },
            },
        },
        Reboot = "string",
        Windows = new[]
        {
            new Azure.Maintenance.Inputs.ConfigurationInstallPatchesWindowArgs
            {
                ClassificationsToIncludes = new[]
                {
                    "string",
                },
                KbNumbersToExcludes = new[]
                {
                    "string",
                },
                KbNumbersToIncludes = new[]
                {
                    "string",
                },
            },
        },
    },
    Location = "string",
    Name = "string",
    Properties = 
    {
        { "string", "string" },
    },
    Tags = 
    {
        { "string", "string" },
    },
    Visibility = "string",
    Window = new Azure.Maintenance.Inputs.ConfigurationWindowArgs
    {
        StartDateTime = "string",
        TimeZone = "string",
        Duration = "string",
        ExpirationDateTime = "string",
        RecurEvery = "string",
    },
});
example, err := maintenance.NewConfiguration(ctx, "azureConfigurationResource", &maintenance.ConfigurationArgs{
	ResourceGroupName:    pulumi.String("string"),
	Scope:                pulumi.String("string"),
	InGuestUserPatchMode: pulumi.String("string"),
	InstallPatches: &maintenance.ConfigurationInstallPatchesArgs{
		Linuxes: maintenance.ConfigurationInstallPatchesLinuxArray{
			&maintenance.ConfigurationInstallPatchesLinuxArgs{
				ClassificationsToIncludes: pulumi.StringArray{
					pulumi.String("string"),
				},
				PackageNamesMaskToExcludes: pulumi.StringArray{
					pulumi.String("string"),
				},
				PackageNamesMaskToIncludes: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
		Reboot: pulumi.String("string"),
		Windows: maintenance.ConfigurationInstallPatchesWindowArray{
			&maintenance.ConfigurationInstallPatchesWindowArgs{
				ClassificationsToIncludes: pulumi.StringArray{
					pulumi.String("string"),
				},
				KbNumbersToExcludes: pulumi.StringArray{
					pulumi.String("string"),
				},
				KbNumbersToIncludes: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
	},
	Location: pulumi.String("string"),
	Name:     pulumi.String("string"),
	Properties: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Visibility: pulumi.String("string"),
	Window: &maintenance.ConfigurationWindowArgs{
		StartDateTime:      pulumi.String("string"),
		TimeZone:           pulumi.String("string"),
		Duration:           pulumi.String("string"),
		ExpirationDateTime: pulumi.String("string"),
		RecurEvery:         pulumi.String("string"),
	},
})
var azureConfigurationResource = new Configuration("azureConfigurationResource", ConfigurationArgs.builder()
    .resourceGroupName("string")
    .scope("string")
    .inGuestUserPatchMode("string")
    .installPatches(ConfigurationInstallPatchesArgs.builder()
        .linuxes(ConfigurationInstallPatchesLinuxArgs.builder()
            .classificationsToIncludes("string")
            .packageNamesMaskToExcludes("string")
            .packageNamesMaskToIncludes("string")
            .build())
        .reboot("string")
        .windows(ConfigurationInstallPatchesWindowArgs.builder()
            .classificationsToIncludes("string")
            .kbNumbersToExcludes("string")
            .kbNumbersToIncludes("string")
            .build())
        .build())
    .location("string")
    .name("string")
    .properties(Map.of("string", "string"))
    .tags(Map.of("string", "string"))
    .visibility("string")
    .window(ConfigurationWindowArgs.builder()
        .startDateTime("string")
        .timeZone("string")
        .duration("string")
        .expirationDateTime("string")
        .recurEvery("string")
        .build())
    .build());
azure_configuration_resource = azure.maintenance.Configuration("azureConfigurationResource",
    resource_group_name="string",
    scope="string",
    in_guest_user_patch_mode="string",
    install_patches={
        "linuxes": [{
            "classifications_to_includes": ["string"],
            "package_names_mask_to_excludes": ["string"],
            "package_names_mask_to_includes": ["string"],
        }],
        "reboot": "string",
        "windows": [{
            "classifications_to_includes": ["string"],
            "kb_numbers_to_excludes": ["string"],
            "kb_numbers_to_includes": ["string"],
        }],
    },
    location="string",
    name="string",
    properties={
        "string": "string",
    },
    tags={
        "string": "string",
    },
    visibility="string",
    window={
        "start_date_time": "string",
        "time_zone": "string",
        "duration": "string",
        "expiration_date_time": "string",
        "recur_every": "string",
    })
const azureConfigurationResource = new azure.maintenance.Configuration("azureConfigurationResource", {
    resourceGroupName: "string",
    scope: "string",
    inGuestUserPatchMode: "string",
    installPatches: {
        linuxes: [{
            classificationsToIncludes: ["string"],
            packageNamesMaskToExcludes: ["string"],
            packageNamesMaskToIncludes: ["string"],
        }],
        reboot: "string",
        windows: [{
            classificationsToIncludes: ["string"],
            kbNumbersToExcludes: ["string"],
            kbNumbersToIncludes: ["string"],
        }],
    },
    location: "string",
    name: "string",
    properties: {
        string: "string",
    },
    tags: {
        string: "string",
    },
    visibility: "string",
    window: {
        startDateTime: "string",
        timeZone: "string",
        duration: "string",
        expirationDateTime: "string",
        recurEvery: "string",
    },
});
type: azure:maintenance:Configuration
properties:
    inGuestUserPatchMode: string
    installPatches:
        linuxes:
            - classificationsToIncludes:
                - string
              packageNamesMaskToExcludes:
                - string
              packageNamesMaskToIncludes:
                - string
        reboot: string
        windows:
            - classificationsToIncludes:
                - string
              kbNumbersToExcludes:
                - string
              kbNumbersToIncludes:
                - string
    location: string
    name: string
    properties:
        string: string
    resourceGroupName: string
    scope: string
    tags:
        string: string
    visibility: string
    window:
        duration: string
        expirationDateTime: string
        recurEvery: string
        startDateTime: string
        timeZone: string
Configuration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Configuration resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
- Scope string
- The scope of the Maintenance Configuration. Possible values are Extension,Host,InGuestPatch,OSImage,SQLDBorSQLManagedInstance.
- InGuest stringUser Patch Mode 
- The in guest user patch mode. Possible values are PlatformorUser. Must be specified whenscopeisInGuestPatch.
- InstallPatches ConfigurationInstall Patches 
- An - install_patchesblock as defined below.- NOTE: - install_patchesmust be specified when- scopeis- InGuestPatch.
- Location string
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
- Properties Dictionary<string, string>
- A mapping of properties to assign to the resource.
- Dictionary<string, string>
- A mapping of tags to assign to the resource. The key could not contain upper case letter.
- Visibility string
- The visibility of the Maintenance Configuration. The only allowable value is Custom. Defaults toCustom.
- Window
ConfigurationWindow 
- A windowblock as defined below.
- ResourceGroup stringName 
- The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
- Scope string
- The scope of the Maintenance Configuration. Possible values are Extension,Host,InGuestPatch,OSImage,SQLDBorSQLManagedInstance.
- InGuest stringUser Patch Mode 
- The in guest user patch mode. Possible values are PlatformorUser. Must be specified whenscopeisInGuestPatch.
- InstallPatches ConfigurationInstall Patches Args 
- An - install_patchesblock as defined below.- NOTE: - install_patchesmust be specified when- scopeis- InGuestPatch.
- Location string
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
- Properties map[string]string
- A mapping of properties to assign to the resource.
- map[string]string
- A mapping of tags to assign to the resource. The key could not contain upper case letter.
- Visibility string
- The visibility of the Maintenance Configuration. The only allowable value is Custom. Defaults toCustom.
- Window
ConfigurationWindow Args 
- A windowblock as defined below.
- resourceGroup StringName 
- The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
- scope String
- The scope of the Maintenance Configuration. Possible values are Extension,Host,InGuestPatch,OSImage,SQLDBorSQLManagedInstance.
- inGuest StringUser Patch Mode 
- The in guest user patch mode. Possible values are PlatformorUser. Must be specified whenscopeisInGuestPatch.
- installPatches ConfigurationInstall Patches 
- An - install_patchesblock as defined below.- NOTE: - install_patchesmust be specified when- scopeis- InGuestPatch.
- location String
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
- properties Map<String,String>
- A mapping of properties to assign to the resource.
- Map<String,String>
- A mapping of tags to assign to the resource. The key could not contain upper case letter.
- visibility String
- The visibility of the Maintenance Configuration. The only allowable value is Custom. Defaults toCustom.
- window
ConfigurationWindow 
- A windowblock as defined below.
- resourceGroup stringName 
- The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
- scope string
- The scope of the Maintenance Configuration. Possible values are Extension,Host,InGuestPatch,OSImage,SQLDBorSQLManagedInstance.
- inGuest stringUser Patch Mode 
- The in guest user patch mode. Possible values are PlatformorUser. Must be specified whenscopeisInGuestPatch.
- installPatches ConfigurationInstall Patches 
- An - install_patchesblock as defined below.- NOTE: - install_patchesmust be specified when- scopeis- InGuestPatch.
- location string
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
- properties {[key: string]: string}
- A mapping of properties to assign to the resource.
- {[key: string]: string}
- A mapping of tags to assign to the resource. The key could not contain upper case letter.
- visibility string
- The visibility of the Maintenance Configuration. The only allowable value is Custom. Defaults toCustom.
- window
ConfigurationWindow 
- A windowblock as defined below.
- resource_group_ strname 
- The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
- scope str
- The scope of the Maintenance Configuration. Possible values are Extension,Host,InGuestPatch,OSImage,SQLDBorSQLManagedInstance.
- in_guest_ struser_ patch_ mode 
- The in guest user patch mode. Possible values are PlatformorUser. Must be specified whenscopeisInGuestPatch.
- install_patches ConfigurationInstall Patches Args 
- An - install_patchesblock as defined below.- NOTE: - install_patchesmust be specified when- scopeis- InGuestPatch.
- location str
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
- properties Mapping[str, str]
- A mapping of properties to assign to the resource.
- Mapping[str, str]
- A mapping of tags to assign to the resource. The key could not contain upper case letter.
- visibility str
- The visibility of the Maintenance Configuration. The only allowable value is Custom. Defaults toCustom.
- window
ConfigurationWindow Args 
- A windowblock as defined below.
- resourceGroup StringName 
- The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
- scope String
- The scope of the Maintenance Configuration. Possible values are Extension,Host,InGuestPatch,OSImage,SQLDBorSQLManagedInstance.
- inGuest StringUser Patch Mode 
- The in guest user patch mode. Possible values are PlatformorUser. Must be specified whenscopeisInGuestPatch.
- installPatches Property Map
- An - install_patchesblock as defined below.- NOTE: - install_patchesmust be specified when- scopeis- InGuestPatch.
- location String
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
- properties Map<String>
- A mapping of properties to assign to the resource.
- Map<String>
- A mapping of tags to assign to the resource. The key could not contain upper case letter.
- visibility String
- The visibility of the Maintenance Configuration. The only allowable value is Custom. Defaults toCustom.
- window Property Map
- A windowblock as defined below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Configuration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Configuration Resource
Get an existing Configuration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ConfigurationState, opts?: CustomResourceOptions): Configuration@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        in_guest_user_patch_mode: Optional[str] = None,
        install_patches: Optional[ConfigurationInstallPatchesArgs] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        properties: Optional[Mapping[str, str]] = None,
        resource_group_name: Optional[str] = None,
        scope: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        visibility: Optional[str] = None,
        window: Optional[ConfigurationWindowArgs] = None) -> Configurationfunc GetConfiguration(ctx *Context, name string, id IDInput, state *ConfigurationState, opts ...ResourceOption) (*Configuration, error)public static Configuration Get(string name, Input<string> id, ConfigurationState? state, CustomResourceOptions? opts = null)public static Configuration get(String name, Output<String> id, ConfigurationState state, CustomResourceOptions options)resources:  _:    type: azure:maintenance:Configuration    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- InGuest stringUser Patch Mode 
- The in guest user patch mode. Possible values are PlatformorUser. Must be specified whenscopeisInGuestPatch.
- InstallPatches ConfigurationInstall Patches 
- An - install_patchesblock as defined below.- NOTE: - install_patchesmust be specified when- scopeis- InGuestPatch.
- Location string
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
- Properties Dictionary<string, string>
- A mapping of properties to assign to the resource.
- ResourceGroup stringName 
- The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
- Scope string
- The scope of the Maintenance Configuration. Possible values are Extension,Host,InGuestPatch,OSImage,SQLDBorSQLManagedInstance.
- Dictionary<string, string>
- A mapping of tags to assign to the resource. The key could not contain upper case letter.
- Visibility string
- The visibility of the Maintenance Configuration. The only allowable value is Custom. Defaults toCustom.
- Window
ConfigurationWindow 
- A windowblock as defined below.
- InGuest stringUser Patch Mode 
- The in guest user patch mode. Possible values are PlatformorUser. Must be specified whenscopeisInGuestPatch.
- InstallPatches ConfigurationInstall Patches Args 
- An - install_patchesblock as defined below.- NOTE: - install_patchesmust be specified when- scopeis- InGuestPatch.
- Location string
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
- Properties map[string]string
- A mapping of properties to assign to the resource.
- ResourceGroup stringName 
- The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
- Scope string
- The scope of the Maintenance Configuration. Possible values are Extension,Host,InGuestPatch,OSImage,SQLDBorSQLManagedInstance.
- map[string]string
- A mapping of tags to assign to the resource. The key could not contain upper case letter.
- Visibility string
- The visibility of the Maintenance Configuration. The only allowable value is Custom. Defaults toCustom.
- Window
ConfigurationWindow Args 
- A windowblock as defined below.
- inGuest StringUser Patch Mode 
- The in guest user patch mode. Possible values are PlatformorUser. Must be specified whenscopeisInGuestPatch.
- installPatches ConfigurationInstall Patches 
- An - install_patchesblock as defined below.- NOTE: - install_patchesmust be specified when- scopeis- InGuestPatch.
- location String
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
- properties Map<String,String>
- A mapping of properties to assign to the resource.
- resourceGroup StringName 
- The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
- scope String
- The scope of the Maintenance Configuration. Possible values are Extension,Host,InGuestPatch,OSImage,SQLDBorSQLManagedInstance.
- Map<String,String>
- A mapping of tags to assign to the resource. The key could not contain upper case letter.
- visibility String
- The visibility of the Maintenance Configuration. The only allowable value is Custom. Defaults toCustom.
- window
ConfigurationWindow 
- A windowblock as defined below.
- inGuest stringUser Patch Mode 
- The in guest user patch mode. Possible values are PlatformorUser. Must be specified whenscopeisInGuestPatch.
- installPatches ConfigurationInstall Patches 
- An - install_patchesblock as defined below.- NOTE: - install_patchesmust be specified when- scopeis- InGuestPatch.
- location string
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
- properties {[key: string]: string}
- A mapping of properties to assign to the resource.
- resourceGroup stringName 
- The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
- scope string
- The scope of the Maintenance Configuration. Possible values are Extension,Host,InGuestPatch,OSImage,SQLDBorSQLManagedInstance.
- {[key: string]: string}
- A mapping of tags to assign to the resource. The key could not contain upper case letter.
- visibility string
- The visibility of the Maintenance Configuration. The only allowable value is Custom. Defaults toCustom.
- window
ConfigurationWindow 
- A windowblock as defined below.
- in_guest_ struser_ patch_ mode 
- The in guest user patch mode. Possible values are PlatformorUser. Must be specified whenscopeisInGuestPatch.
- install_patches ConfigurationInstall Patches Args 
- An - install_patchesblock as defined below.- NOTE: - install_patchesmust be specified when- scopeis- InGuestPatch.
- location str
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
- properties Mapping[str, str]
- A mapping of properties to assign to the resource.
- resource_group_ strname 
- The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
- scope str
- The scope of the Maintenance Configuration. Possible values are Extension,Host,InGuestPatch,OSImage,SQLDBorSQLManagedInstance.
- Mapping[str, str]
- A mapping of tags to assign to the resource. The key could not contain upper case letter.
- visibility str
- The visibility of the Maintenance Configuration. The only allowable value is Custom. Defaults toCustom.
- window
ConfigurationWindow Args 
- A windowblock as defined below.
- inGuest StringUser Patch Mode 
- The in guest user patch mode. Possible values are PlatformorUser. Must be specified whenscopeisInGuestPatch.
- installPatches Property Map
- An - install_patchesblock as defined below.- NOTE: - install_patchesmust be specified when- scopeis- InGuestPatch.
- location String
- Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.
- properties Map<String>
- A mapping of properties to assign to the resource.
- resourceGroup StringName 
- The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.
- scope String
- The scope of the Maintenance Configuration. Possible values are Extension,Host,InGuestPatch,OSImage,SQLDBorSQLManagedInstance.
- Map<String>
- A mapping of tags to assign to the resource. The key could not contain upper case letter.
- visibility String
- The visibility of the Maintenance Configuration. The only allowable value is Custom. Defaults toCustom.
- window Property Map
- A windowblock as defined below.
Supporting Types
ConfigurationInstallPatches, ConfigurationInstallPatchesArgs      
- Linuxes
List<ConfigurationInstall Patches Linux> 
- A linuxblock as defined above. This property only applies whenscopeis set toInGuestPatch
- Reboot 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. Possible values are Always,IfRequiredandNever. This property only applies whenscopeis set toInGuestPatch.
- Windows
List<ConfigurationInstall Patches Window> 
- A windowsblock as defined above. This property only applies whenscopeis set toInGuestPatch
- Linuxes
[]ConfigurationInstall Patches Linux 
- A linuxblock as defined above. This property only applies whenscopeis set toInGuestPatch
- Reboot 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. Possible values are Always,IfRequiredandNever. This property only applies whenscopeis set toInGuestPatch.
- Windows
[]ConfigurationInstall Patches Window 
- A windowsblock as defined above. This property only applies whenscopeis set toInGuestPatch
- linuxes
List<ConfigurationInstall Patches Linux> 
- A linuxblock as defined above. This property only applies whenscopeis set toInGuestPatch
- reboot 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. Possible values are Always,IfRequiredandNever. This property only applies whenscopeis set toInGuestPatch.
- windows
List<ConfigurationInstall Patches Window> 
- A windowsblock as defined above. This property only applies whenscopeis set toInGuestPatch
- linuxes
ConfigurationInstall Patches Linux[] 
- A linuxblock as defined above. This property only applies whenscopeis set toInGuestPatch
- reboot 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. Possible values are Always,IfRequiredandNever. This property only applies whenscopeis set toInGuestPatch.
- windows
ConfigurationInstall Patches Window[] 
- A windowsblock as defined above. This property only applies whenscopeis set toInGuestPatch
- linuxes
Sequence[ConfigurationInstall Patches Linux] 
- A linuxblock as defined above. This property only applies whenscopeis set toInGuestPatch
- reboot str
- 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. Possible values are Always,IfRequiredandNever. This property only applies whenscopeis set toInGuestPatch.
- windows
Sequence[ConfigurationInstall Patches Window] 
- A windowsblock as defined above. This property only applies whenscopeis set toInGuestPatch
- linuxes List<Property Map>
- A linuxblock as defined above. This property only applies whenscopeis set toInGuestPatch
- reboot 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. Possible values are Always,IfRequiredandNever. This property only applies whenscopeis set toInGuestPatch.
- windows List<Property Map>
- A windowsblock as defined above. This property only applies whenscopeis set toInGuestPatch
ConfigurationInstallPatchesLinux, ConfigurationInstallPatchesLinuxArgs        
- ClassificationsTo List<string>Includes 
- List of Classification category of patches to be patched. Possible values are Critical,SecurityandOther.
- PackageNames List<string>Mask To Excludes 
- List of package names to be excluded from patching.
- PackageNames List<string>Mask To Includes 
- List of package names to be included for patching.
- ClassificationsTo []stringIncludes 
- List of Classification category of patches to be patched. Possible values are Critical,SecurityandOther.
- PackageNames []stringMask To Excludes 
- List of package names to be excluded from patching.
- PackageNames []stringMask To Includes 
- List of package names to be included for patching.
- classificationsTo List<String>Includes 
- List of Classification category of patches to be patched. Possible values are Critical,SecurityandOther.
- packageNames List<String>Mask To Excludes 
- List of package names to be excluded from patching.
- packageNames List<String>Mask To Includes 
- List of package names to be included for patching.
- classificationsTo string[]Includes 
- List of Classification category of patches to be patched. Possible values are Critical,SecurityandOther.
- packageNames string[]Mask To Excludes 
- List of package names to be excluded from patching.
- packageNames string[]Mask To Includes 
- List of package names to be included for patching.
- classifications_to_ Sequence[str]includes 
- List of Classification category of patches to be patched. Possible values are Critical,SecurityandOther.
- package_names_ Sequence[str]mask_ to_ excludes 
- List of package names to be excluded from patching.
- package_names_ Sequence[str]mask_ to_ includes 
- List of package names to be included for patching.
- classificationsTo List<String>Includes 
- List of Classification category of patches to be patched. Possible values are Critical,SecurityandOther.
- packageNames List<String>Mask To Excludes 
- List of package names to be excluded from patching.
- packageNames List<String>Mask To Includes 
- List of package names to be included for patching.
ConfigurationInstallPatchesWindow, ConfigurationInstallPatchesWindowArgs        
- ClassificationsTo List<string>Includes 
- List of Classification category of patches to be patched. Possible values are Critical,Security,UpdateRollup,FeaturePack,ServicePack,Definition,ToolsandUpdates.
- KbNumbers List<string>To Excludes 
- List of KB numbers to be excluded from patching.
- KbNumbers List<string>To Includes 
- List of KB numbers to be included for patching.
- ClassificationsTo []stringIncludes 
- List of Classification category of patches to be patched. Possible values are Critical,Security,UpdateRollup,FeaturePack,ServicePack,Definition,ToolsandUpdates.
- KbNumbers []stringTo Excludes 
- List of KB numbers to be excluded from patching.
- KbNumbers []stringTo Includes 
- List of KB numbers to be included for patching.
- classificationsTo List<String>Includes 
- List of Classification category of patches to be patched. Possible values are Critical,Security,UpdateRollup,FeaturePack,ServicePack,Definition,ToolsandUpdates.
- kbNumbers List<String>To Excludes 
- List of KB numbers to be excluded from patching.
- kbNumbers List<String>To Includes 
- List of KB numbers to be included for patching.
- classificationsTo string[]Includes 
- List of Classification category of patches to be patched. Possible values are Critical,Security,UpdateRollup,FeaturePack,ServicePack,Definition,ToolsandUpdates.
- kbNumbers string[]To Excludes 
- List of KB numbers to be excluded from patching.
- kbNumbers string[]To Includes 
- List of KB numbers to be included for patching.
- classifications_to_ Sequence[str]includes 
- List of Classification category of patches to be patched. Possible values are Critical,Security,UpdateRollup,FeaturePack,ServicePack,Definition,ToolsandUpdates.
- kb_numbers_ Sequence[str]to_ excludes 
- List of KB numbers to be excluded from patching.
- kb_numbers_ Sequence[str]to_ includes 
- List of KB numbers to be included for patching.
- classificationsTo List<String>Includes 
- List of Classification category of patches to be patched. Possible values are Critical,Security,UpdateRollup,FeaturePack,ServicePack,Definition,ToolsandUpdates.
- kbNumbers List<String>To Excludes 
- List of KB numbers to be excluded from patching.
- kbNumbers List<String>To Includes 
- List of KB numbers to be included for patching.
ConfigurationWindow, ConfigurationWindowArgs    
- StartDate stringTime 
- Effective start date of the maintenance window in YYYY-MM-DD hh:mm format.
- TimeZone string
- The time zone for the maintenance window. A list of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.
- Duration string
- The duration of the maintenance window in HH:mm format.
- ExpirationDate stringTime 
- Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format.
- RecurEvery string
- The rate at which a maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules.
- StartDate stringTime 
- Effective start date of the maintenance window in YYYY-MM-DD hh:mm format.
- TimeZone string
- The time zone for the maintenance window. A list of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.
- Duration string
- The duration of the maintenance window in HH:mm format.
- ExpirationDate stringTime 
- Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format.
- RecurEvery string
- The rate at which a maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules.
- startDate StringTime 
- Effective start date of the maintenance window in YYYY-MM-DD hh:mm format.
- timeZone String
- The time zone for the maintenance window. A list of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.
- duration String
- The duration of the maintenance window in HH:mm format.
- expirationDate StringTime 
- Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format.
- recurEvery String
- The rate at which a maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules.
- startDate stringTime 
- Effective start date of the maintenance window in YYYY-MM-DD hh:mm format.
- timeZone string
- The time zone for the maintenance window. A list of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.
- duration string
- The duration of the maintenance window in HH:mm format.
- expirationDate stringTime 
- Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format.
- recurEvery string
- The rate at which a maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules.
- start_date_ strtime 
- Effective start date of the maintenance window in YYYY-MM-DD hh:mm format.
- time_zone str
- The time zone for the maintenance window. A list of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.
- duration str
- The duration of the maintenance window in HH:mm format.
- expiration_date_ strtime 
- Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format.
- recur_every str
- The rate at which a maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules.
- startDate StringTime 
- Effective start date of the maintenance window in YYYY-MM-DD hh:mm format.
- timeZone String
- The time zone for the maintenance window. A list of timezones can be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell.
- duration String
- The duration of the maintenance window in HH:mm format.
- expirationDate StringTime 
- Effective expiration date of the maintenance window in YYYY-MM-DD hh:mm format.
- recurEvery String
- The rate at which a maintenance window is expected to recur. The rate can be expressed as daily, weekly, or monthly schedules.
Import
Maintenance Configuration can be imported using the resource id, e.g.
$ pulumi import azure:maintenance/configuration:Configuration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Maintenance/maintenanceConfigurations/example-mc
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.