1. Packages
  2. Azure Native v1
  3. API Docs
  4. maintenance
  5. MaintenanceConfiguration
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.maintenance.MaintenanceConfiguration

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

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

    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()
        {
            Location = "westus2",
            Namespace = "Microsoft.Maintenance",
            ResourceGroupName = "examplerg",
            ResourceName = "configuration1",
        });
    
    });
    
    package main
    
    import (
    	maintenance "github.com/pulumi/pulumi-azure-native-sdk/maintenance"
    	"github.com/pulumi/pulumi/sdk/v3/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
    	})
    }
    
    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.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 maintenanceConfiguration = new MaintenanceConfiguration("maintenanceConfiguration", MaintenanceConfigurationArgs.builder()        
                .location("westus2")
                .namespace("Microsoft.Maintenance")
                .resourceGroupName("examplerg")
                .resourceName("configuration1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    maintenance_configuration = azure_native.maintenance.MaintenanceConfiguration("maintenanceConfiguration",
        location="westus2",
        namespace="Microsoft.Maintenance",
        resource_group_name="examplerg",
        resource_name_="configuration1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const maintenanceConfiguration = new azure_native.maintenance.MaintenanceConfiguration("maintenanceConfiguration", {
        location: "westus2",
        namespace: "Microsoft.Maintenance",
        resourceGroupName: "examplerg",
        resourceName: "configuration1",
    });
    
    resources:
      maintenanceConfiguration:
        type: azure-native:maintenance:MaintenanceConfiguration
        properties:
          location: westus2
          namespace: Microsoft.Maintenance
          resourceGroupName: examplerg
          resourceName: configuration1
    

    Create MaintenanceConfiguration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MaintenanceConfiguration(name: string, args: MaintenanceConfigurationArgs, opts?: CustomResourceOptions);
    @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,
                                 extension_properties: Optional[Mapping[str, str]] = None,
                                 location: Optional[str] = None,
                                 maintenance_scope: Optional[Union[str, MaintenanceScope]] = None,
                                 namespace: 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)
    public MaintenanceConfiguration(String name, MaintenanceConfigurationArgs args)
    public MaintenanceConfiguration(String name, MaintenanceConfigurationArgs args, CustomResourceOptions options)
    
    type: azure-native:maintenance:MaintenanceConfiguration
    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 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.
    args MaintenanceConfigurationArgs
    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 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.
    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 azure_nativeMaintenanceConfigurationResource = new AzureNative.Maintenance.MaintenanceConfiguration("azure-nativeMaintenanceConfigurationResource", new()
    {
        ResourceGroupName = "string",
        ExtensionProperties = 
        {
            { "string", "string" },
        },
        Location = "string",
        MaintenanceScope = "string",
        Namespace = "string",
        ResourceName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := maintenance.NewMaintenanceConfiguration(ctx, "azure-nativeMaintenanceConfigurationResource", &maintenance.MaintenanceConfigurationArgs{
    	ResourceGroupName: "string",
    	ExtensionProperties: map[string]interface{}{
    		"string": "string",
    	},
    	Location:         "string",
    	MaintenanceScope: "string",
    	Namespace:        "string",
    	ResourceName:     "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    })
    
    var azure_nativeMaintenanceConfigurationResource = new MaintenanceConfiguration("azure-nativeMaintenanceConfigurationResource", MaintenanceConfigurationArgs.builder()
        .resourceGroupName("string")
        .extensionProperties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .location("string")
        .maintenanceScope("string")
        .namespace("string")
        .resourceName("string")
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    azure_native_maintenance_configuration_resource = azure_native.maintenance.MaintenanceConfiguration("azure-nativeMaintenanceConfigurationResource",
        resource_group_name=string,
        extension_properties={
            string: string,
        },
        location=string,
        maintenance_scope=string,
        namespace=string,
        resource_name_=string,
        tags={
            string: string,
        })
    
    const azure_nativeMaintenanceConfigurationResource = new azure_native.maintenance.MaintenanceConfiguration("azure-nativeMaintenanceConfigurationResource", {
        resourceGroupName: "string",
        extensionProperties: {
            string: "string",
        },
        location: "string",
        maintenanceScope: "string",
        namespace: "string",
        resourceName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:maintenance:MaintenanceConfiguration
    properties:
        extensionProperties:
            string: string
        location: string
        maintenanceScope: string
        namespace: string
        resourceGroupName: string
        resourceName: string
        tags:
            string: 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.

    Inputs

    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
    Resource Group Name
    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.AzureNative.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
    ResourceName string
    Resource Identifier
    Tags Dictionary<string, string>
    Gets or sets tags of the resource
    ResourceGroupName string
    Resource Group Name
    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
    ResourceName string
    Resource Identifier
    Tags map[string]string
    Gets or sets tags of the resource
    resourceGroupName String
    Resource Group Name
    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
    resourceName String
    Resource Identifier
    tags Map<String,String>
    Gets or sets tags of the resource
    resourceGroupName string
    Resource Group Name
    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
    resourceName string
    Resource Identifier
    tags {[key: string]: string}
    Gets or sets tags of the resource
    resource_group_name str
    Resource Group Name
    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
    resource_name str
    Resource Identifier
    tags Mapping[str, str]
    Gets or sets tags of the resource
    resourceGroupName String
    Resource Group Name
    extensionProperties Map<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 | "All" | "Host" | "Resource" | "InResource"
    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
    resourceName String
    Resource Identifier
    tags Map<String>
    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 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
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the resource
    type String
    Type of the resource

    Supporting Types

    MaintenanceScope, MaintenanceScopeArgs

    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
    InResource
    InResource
    ALL
    All
    HOST
    Host
    RESOURCE
    Resource
    IN_RESOURCE
    InResource
    "All"
    All
    "Host"
    Host
    "Resource"
    Resource
    "InResource"
    InResource

    Import

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

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

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi