Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

MaintenanceConfiguration

Maintenance configuration record type Latest API Version: 2020-04-01.

Example Usage

MaintenanceConfigurations_CreateOrUpdateForResource

using Pulumi;
using AzureNextGen = Pulumi.AzureNextGen;

class MyStack : Stack
{
    public MyStack()
    {
        var maintenanceConfiguration = new AzureNextGen.Maintenance.Latest.MaintenanceConfiguration("maintenanceConfiguration", new AzureNextGen.Maintenance.Latest.MaintenanceConfigurationArgs
        {
            Location = "westus2",
            Namespace = "Microsoft.Maintenance",
            ResourceGroupName = "examplerg",
            ResourceName = "configuration1",
        });
    }

}
package main

import (
    maintenance "github.com/pulumi/pulumi-azure-nextgen/sdk/go/azure/maintenance/latest"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := maintenance.NewMaintenanceConfiguration(ctx, "maintenanceConfiguration", &maintenance.MaintenanceConfigurationArgs{
            Location:          pulumi.String("westus2"),
            Namespace:         pulumi.String("Microsoft.Maintenance"),
            ResourceGroupName: pulumi.String("examplerg"),
            ResourceName:      pulumi.String("configuration1"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure_nextgen as azure_nextgen

maintenance_configuration = azure_nextgen.maintenance.latest.MaintenanceConfiguration("maintenanceConfiguration",
    location="westus2",
    namespace="Microsoft.Maintenance",
    resource_group_name="examplerg",
    resource_name="configuration1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_nextgen from "@pulumi/azure-nextgen";

const maintenanceConfiguration = new azure_nextgen.maintenance.latest.MaintenanceConfiguration("maintenanceConfiguration", {
    location: "westus2",
    namespace: "Microsoft.Maintenance",
    resourceGroupName: "examplerg",
    resourceName: "configuration1",
});

Create a MaintenanceConfiguration Resource

new MaintenanceConfiguration(name: string, args: MaintenanceConfigurationArgs, opts?: CustomResourceOptions);
def MaintenanceConfiguration(resource_name: str, opts: Optional[ResourceOptions] = None, extension_properties: Optional[Mapping[str, str]] = None, location: Optional[str] = None, maintenance_scope: Optional[Union[str, MaintenanceScope]] = None, namespace: Optional[str] = None, resource_group_name: Optional[str] = None, resource_name_: Optional[str] = None, tags: Optional[Mapping[str, str]] = None)
func NewMaintenanceConfiguration(ctx *Context, name string, args MaintenanceConfigurationArgs, opts ...ResourceOption) (*MaintenanceConfiguration, error)
public MaintenanceConfiguration(string name, MaintenanceConfigurationArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args MaintenanceConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args MaintenanceConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args MaintenanceConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

MaintenanceConfiguration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The MaintenanceConfiguration resource accepts the following input properties:

ResourceGroupName string
Resource Group Name
ResourceName string
Resource Identifier
ExtensionProperties Dictionary<string, string>
Gets or sets extensionProperties of the maintenanceConfiguration. This is for future use only and would be a set of key value pairs for additional information e.g. whether to follow SDP etc.
Location string
Gets or sets location of the resource
MaintenanceScope string | Pulumi.AzureNextGen.Maintenance.MaintenanceScope
Gets or sets maintenanceScope of the configuration. It represent the impact area of the maintenance
Namespace string
Gets or sets namespace of the resource e.g. Microsoft.Maintenance or Microsoft.Sql
Tags Dictionary<string, string>
Gets or sets tags of the resource
ResourceGroupName string
Resource Group Name
ResourceName string
Resource Identifier
ExtensionProperties map[string]string
Gets or sets extensionProperties of the maintenanceConfiguration. This is for future use only and would be a set of key value pairs for additional information e.g. whether to follow SDP etc.
Location string
Gets or sets location of the resource
MaintenanceScope string | MaintenanceScope
Gets or sets maintenanceScope of the configuration. It represent the impact area of the maintenance
Namespace string
Gets or sets namespace of the resource e.g. Microsoft.Maintenance or Microsoft.Sql
Tags map[string]string
Gets or sets tags of the resource
resourceGroupName string
Resource Group Name
resourceName string
Resource Identifier
extensionProperties {[key: string]: string}
Gets or sets extensionProperties of the maintenanceConfiguration. This is for future use only and would be a set of key value pairs for additional information e.g. whether to follow SDP etc.
location string
Gets or sets location of the resource
maintenanceScope string | MaintenanceScope
Gets or sets maintenanceScope of the configuration. It represent the impact area of the maintenance
namespace string
Gets or sets namespace of the resource e.g. Microsoft.Maintenance or Microsoft.Sql
tags {[key: string]: string}
Gets or sets tags of the resource
resource_group_name str
Resource Group Name
resource_name str
Resource Identifier
extension_properties Mapping[str, str]
Gets or sets extensionProperties of the maintenanceConfiguration. This is for future use only and would be a set of key value pairs for additional information e.g. whether to follow SDP etc.
location str
Gets or sets location of the resource
maintenance_scope str | MaintenanceScope
Gets or sets maintenanceScope of the configuration. It represent the impact area of the maintenance
namespace str
Gets or sets namespace of the resource e.g. Microsoft.Maintenance or Microsoft.Sql
tags Mapping[str, str]
Gets or sets tags of the resource

Outputs

All input properties are implicitly available as output properties. Additionally, the MaintenanceConfiguration resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of the resource
Type string
Type of the resource
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of the resource
Type string
Type of the resource
id string
The provider-assigned unique ID for this managed resource.
name string
Name of the resource
type string
Type of the resource
id str
The provider-assigned unique ID for this managed resource.
name str
Name of the resource
type str
Type of the resource

Supporting Types

MaintenanceScope

All
All
Host
Host
Resource
Resource
InResource
InResource
MaintenanceScopeAll
All
MaintenanceScopeHost
Host
MaintenanceScopeResource
Resource
MaintenanceScopeInResource
InResource
All
All
Host
Host
Resource
Resource
InResource
InResource
ALL
All
HOST
Host
RESOURCE
Resource
IN_RESOURCE
InResource

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-nextgen:maintenance/latest:MaintenanceConfiguration configuration1 /subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/configuration1 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-nextgen
License
Apache-2.0