Configuration

Manages a maintenance configuration.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
        {
            Location = "West Europe",
        });
        var exampleConfiguration = new Azure.Maintenance.Configuration("exampleConfiguration", new Azure.Maintenance.ConfigurationArgs
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            Scope = "All",
            Tags = 
            {
                { "Env", "prod" },
            },
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/maintenance"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
            Location: pulumi.String("West Europe"),
        })
        if err != nil {
            return err
        }
        _, err = maintenance.NewConfiguration(ctx, "exampleConfiguration", &maintenance.ConfigurationArgs{
            ResourceGroupName: exampleResourceGroup.Name,
            Location:          exampleResourceGroup.Location,
            Scope:             pulumi.String("All"),
            Tags: pulumi.Map{
                "Env": pulumi.String("prod"),
            },
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_configuration = azure.maintenance.Configuration("exampleConfiguration",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    scope="All",
    tags={
        "Env": "prod",
    })
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleConfiguration = new azure.maintenance.Configuration("exampleConfiguration", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    scope: "All",
    tags: {
        Env: "prod",
    },
});

Create a Configuration Resource

def Configuration(resource_name, opts=None, location=None, name=None, resource_group_name=None, scope=None, tags=None, __props__=None);
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.
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 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.

Configuration Resource Properties

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

Inputs

The Configuration resource accepts the following input properties:

ResourceGroupName string

The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.

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.

Scope string

The scope of the Maintenance Configuration. Possible values are All, Host, Resource or InResource. Default to All.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource. The key could not contain upper case letter.

ResourceGroupName string

The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.

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.

Scope string

The scope of the Maintenance Configuration. Possible values are All, Host, Resource or InResource. Default to All.

Tags map[string]string

A mapping of tags to assign to the resource. The key could not contain upper case letter.

resourceGroupName string

The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.

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.

scope string

The scope of the Maintenance Configuration. Possible values are All, Host, Resource or InResource. Default to All.

tags {[key: string]: string}

A mapping of tags to assign to the resource. The key could not contain upper case letter.

resource_group_name str

The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.

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.

scope str

The scope of the Maintenance Configuration. Possible values are All, Host, Resource or InResource. Default to All.

tags Dict[str, str]

A mapping of tags to assign to the resource. The key could not contain upper case letter.

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 str
The provider-assigned unique ID for this managed resource.

Look up an 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
static get(resource_name, id, opts=None, location=None, name=None, resource_group_name=None, scope=None, tags=None, __props__=None);
func 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)
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.

The following state arguments are supported:

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.

ResourceGroupName string

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 All, Host, Resource or InResource. Default to All.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource. The key could not contain upper case letter.

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.

ResourceGroupName string

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 All, Host, Resource or InResource. Default to All.

Tags map[string]string

A mapping of tags to assign to the resource. The key could not contain upper case letter.

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.

resourceGroupName string

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 All, Host, Resource or InResource. Default to All.

tags {[key: string]: string}

A mapping of tags to assign to the resource. The key could not contain upper case letter.

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.

resource_group_name str

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 All, Host, Resource or InResource. Default to All.

tags Dict[str, str]

A mapping of tags to assign to the resource. The key could not contain upper case letter.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.