azure-native.app.MaintenanceConfiguration
Explore with Pulumi AI
Information about the Maintenance Configuration resource. Azure REST API version: 2024-10-02-preview.
Example Usage
ManagedEnvironmentMaintenanceConfigurationsCreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var maintenanceConfiguration = new AzureNative.App.MaintenanceConfiguration("maintenanceConfiguration", new()
    {
        ConfigName = "default",
        EnvironmentName = "managedEnv",
        ResourceGroupName = "rg1",
        ScheduledEntries = new[]
        {
            new AzureNative.App.Inputs.ScheduledEntryArgs
            {
                DurationHours = 9,
                StartHourUtc = 12,
                WeekDay = AzureNative.App.WeekDay.Sunday,
            },
        },
    });
});
package main
import (
	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := app.NewMaintenanceConfiguration(ctx, "maintenanceConfiguration", &app.MaintenanceConfigurationArgs{
			ConfigName:        pulumi.String("default"),
			EnvironmentName:   pulumi.String("managedEnv"),
			ResourceGroupName: pulumi.String("rg1"),
			ScheduledEntries: app.ScheduledEntryArray{
				&app.ScheduledEntryArgs{
					DurationHours: pulumi.Int(9),
					StartHourUtc:  pulumi.Int(12),
					WeekDay:       app.WeekDaySunday,
				},
			},
		})
		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.app.MaintenanceConfiguration;
import com.pulumi.azurenative.app.MaintenanceConfigurationArgs;
import com.pulumi.azurenative.app.inputs.ScheduledEntryArgs;
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()
            .configName("default")
            .environmentName("managedEnv")
            .resourceGroupName("rg1")
            .scheduledEntries(ScheduledEntryArgs.builder()
                .durationHours(9)
                .startHourUtc(12)
                .weekDay("Sunday")
                .build())
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const maintenanceConfiguration = new azure_native.app.MaintenanceConfiguration("maintenanceConfiguration", {
    configName: "default",
    environmentName: "managedEnv",
    resourceGroupName: "rg1",
    scheduledEntries: [{
        durationHours: 9,
        startHourUtc: 12,
        weekDay: azure_native.app.WeekDay.Sunday,
    }],
});
import pulumi
import pulumi_azure_native as azure_native
maintenance_configuration = azure_native.app.MaintenanceConfiguration("maintenanceConfiguration",
    config_name="default",
    environment_name="managedEnv",
    resource_group_name="rg1",
    scheduled_entries=[{
        "duration_hours": 9,
        "start_hour_utc": 12,
        "week_day": azure_native.app.WeekDay.SUNDAY,
    }])
resources:
  maintenanceConfiguration:
    type: azure-native:app:MaintenanceConfiguration
    properties:
      configName: default
      environmentName: managedEnv
      resourceGroupName: rg1
      scheduledEntries:
        - durationHours: 9
          startHourUtc: 12
          weekDay: Sunday
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,
                             environment_name: Optional[str] = None,
                             resource_group_name: Optional[str] = None,
                             scheduled_entries: Optional[Sequence[ScheduledEntryArgs]] = None,
                             config_name: Optional[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:app: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 maintenanceConfigurationResource = new AzureNative.App.MaintenanceConfiguration("maintenanceConfigurationResource", new()
{
    EnvironmentName = "string",
    ResourceGroupName = "string",
    ScheduledEntries = new[]
    {
        new AzureNative.App.Inputs.ScheduledEntryArgs
        {
            DurationHours = 0,
            StartHourUtc = 0,
            WeekDay = AzureNative.App.WeekDay.Monday,
        },
    },
    ConfigName = "string",
});
example, err := app.NewMaintenanceConfiguration(ctx, "maintenanceConfigurationResource", &app.MaintenanceConfigurationArgs{
	EnvironmentName:   pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	ScheduledEntries: app.ScheduledEntryArray{
		&app.ScheduledEntryArgs{
			DurationHours: pulumi.Int(0),
			StartHourUtc:  pulumi.Int(0),
			WeekDay:       app.WeekDayMonday,
		},
	},
	ConfigName: pulumi.String("string"),
})
var maintenanceConfigurationResource = new MaintenanceConfiguration("maintenanceConfigurationResource", MaintenanceConfigurationArgs.builder()
    .environmentName("string")
    .resourceGroupName("string")
    .scheduledEntries(ScheduledEntryArgs.builder()
        .durationHours(0)
        .startHourUtc(0)
        .weekDay("Monday")
        .build())
    .configName("string")
    .build());
maintenance_configuration_resource = azure_native.app.MaintenanceConfiguration("maintenanceConfigurationResource",
    environment_name="string",
    resource_group_name="string",
    scheduled_entries=[{
        "duration_hours": 0,
        "start_hour_utc": 0,
        "week_day": azure_native.app.WeekDay.MONDAY,
    }],
    config_name="string")
const maintenanceConfigurationResource = new azure_native.app.MaintenanceConfiguration("maintenanceConfigurationResource", {
    environmentName: "string",
    resourceGroupName: "string",
    scheduledEntries: [{
        durationHours: 0,
        startHourUtc: 0,
        weekDay: azure_native.app.WeekDay.Monday,
    }],
    configName: "string",
});
type: azure-native:app:MaintenanceConfiguration
properties:
    configName: string
    environmentName: string
    resourceGroupName: string
    scheduledEntries:
        - durationHours: 0
          startHourUtc: 0
          weekDay: Monday
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:
- EnvironmentName string
- The name of the Managed Environment.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ScheduledEntries List<Pulumi.Azure Native. App. Inputs. Scheduled Entry> 
- List of maintenance schedules for a managed environment.
- ConfigName string
- The name of the maintenance configuration.
- EnvironmentName string
- The name of the Managed Environment.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- ScheduledEntries []ScheduledEntry Args 
- List of maintenance schedules for a managed environment.
- ConfigName string
- The name of the maintenance configuration.
- environmentName String
- The name of the Managed Environment.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- scheduledEntries List<ScheduledEntry> 
- List of maintenance schedules for a managed environment.
- configName String
- The name of the maintenance configuration.
- environmentName string
- The name of the Managed Environment.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- scheduledEntries ScheduledEntry[] 
- List of maintenance schedules for a managed environment.
- configName string
- The name of the maintenance configuration.
- environment_name str
- The name of the Managed Environment.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- scheduled_entries Sequence[ScheduledEntry Args] 
- List of maintenance schedules for a managed environment.
- config_name str
- The name of the maintenance configuration.
- environmentName String
- The name of the Managed Environment.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- scheduledEntries List<Property Map>
- List of maintenance schedules for a managed environment.
- configName String
- The name of the maintenance configuration.
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
- The name of the resource
- SystemData Pulumi.Azure Native. App. Outputs. System Data Response 
- 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"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- SystemData SystemData Response 
- 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"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- systemData SystemData Response 
- 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"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- systemData SystemData Response 
- 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"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_data SystemData Response 
- 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"
- 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"
Supporting Types
ScheduledEntry, ScheduledEntryArgs    
- DurationHours int
- Length of maintenance window range from 8 to 24 hours.
- StartHour intUtc 
- Start hour after which managed environment maintenance can start from 0 to 23 hour.
- WeekDay Pulumi.Azure Native. App. Week Day 
- Day of the week when a managed environment can be patched.
- DurationHours int
- Length of maintenance window range from 8 to 24 hours.
- StartHour intUtc 
- Start hour after which managed environment maintenance can start from 0 to 23 hour.
- WeekDay WeekDay 
- Day of the week when a managed environment can be patched.
- durationHours Integer
- Length of maintenance window range from 8 to 24 hours.
- startHour IntegerUtc 
- Start hour after which managed environment maintenance can start from 0 to 23 hour.
- weekDay WeekDay 
- Day of the week when a managed environment can be patched.
- durationHours number
- Length of maintenance window range from 8 to 24 hours.
- startHour numberUtc 
- Start hour after which managed environment maintenance can start from 0 to 23 hour.
- weekDay WeekDay 
- Day of the week when a managed environment can be patched.
- duration_hours int
- Length of maintenance window range from 8 to 24 hours.
- start_hour_ intutc 
- Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week_day WeekDay 
- Day of the week when a managed environment can be patched.
- durationHours Number
- Length of maintenance window range from 8 to 24 hours.
- startHour NumberUtc 
- Start hour after which managed environment maintenance can start from 0 to 23 hour.
- weekDay "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday"
- Day of the week when a managed environment can be patched.
ScheduledEntryResponse, ScheduledEntryResponseArgs      
- DurationHours int
- Length of maintenance window range from 8 to 24 hours.
- StartHour intUtc 
- Start hour after which managed environment maintenance can start from 0 to 23 hour.
- WeekDay string
- Day of the week when a managed environment can be patched.
- DurationHours int
- Length of maintenance window range from 8 to 24 hours.
- StartHour intUtc 
- Start hour after which managed environment maintenance can start from 0 to 23 hour.
- WeekDay string
- Day of the week when a managed environment can be patched.
- durationHours Integer
- Length of maintenance window range from 8 to 24 hours.
- startHour IntegerUtc 
- Start hour after which managed environment maintenance can start from 0 to 23 hour.
- weekDay String
- Day of the week when a managed environment can be patched.
- durationHours number
- Length of maintenance window range from 8 to 24 hours.
- startHour numberUtc 
- Start hour after which managed environment maintenance can start from 0 to 23 hour.
- weekDay string
- Day of the week when a managed environment can be patched.
- duration_hours int
- Length of maintenance window range from 8 to 24 hours.
- start_hour_ intutc 
- Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week_day str
- Day of the week when a managed environment can be patched.
- durationHours Number
- Length of maintenance window range from 8 to 24 hours.
- startHour NumberUtc 
- Start hour after which managed environment maintenance can start from 0 to 23 hour.
- weekDay String
- Day of the week when a managed environment can be patched.
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
WeekDay, WeekDayArgs    
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Sunday
- Sunday
- WeekDay Monday 
- Monday
- WeekDay Tuesday 
- Tuesday
- WeekDay Wednesday 
- Wednesday
- WeekDay Thursday 
- Thursday
- WeekDay Friday 
- Friday
- WeekDay Saturday 
- Saturday
- WeekDay Sunday 
- Sunday
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Sunday
- Sunday
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Sunday
- Sunday
- MONDAY
- Monday
- TUESDAY
- Tuesday
- WEDNESDAY
- Wednesday
- THURSDAY
- Thursday
- FRIDAY
- Friday
- SATURDAY
- Saturday
- SUNDAY
- Sunday
- "Monday"
- Monday
- "Tuesday"
- Tuesday
- "Wednesday"
- Wednesday
- "Thursday"
- Thursday
- "Friday"
- Friday
- "Saturday"
- Saturday
- "Sunday"
- Sunday
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:app:MaintenanceConfiguration default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/maintenanceConfigurations/{configName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0