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 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,
}])
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,
}],
});
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:
- Environment
Name string - The name of the Managed Environment.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Scheduled
Entries List<Pulumi.Azure Native. App. Inputs. Scheduled Entry> - List of maintenance schedules for a managed environment.
- Config
Name string - The name of the maintenance configuration.
- Environment
Name string - The name of the Managed Environment.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Scheduled
Entries []ScheduledEntry Args - List of maintenance schedules for a managed environment.
- Config
Name string - The name of the maintenance configuration.
- environment
Name String - The name of the Managed Environment.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- scheduled
Entries List<ScheduledEntry> - List of maintenance schedules for a managed environment.
- config
Name String - The name of the maintenance configuration.
- environment
Name string - The name of the Managed Environment.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- scheduled
Entries ScheduledEntry[] - List of maintenance schedules for a managed environment.
- config
Name 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.
- environment
Name String - The name of the Managed Environment.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- scheduled
Entries List<Property Map> - List of maintenance schedules for a managed environment.
- config
Name 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
- System
Data 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
- System
Data 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
- system
Data 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
- system
Data 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
- system
Data 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
- 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 Pulumi.Azure Native. App. Week Day - 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.
- duration
Hours Integer - Length of maintenance window range from 8 to 24 hours.
- start
Hour IntegerUtc - 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.
- duration
Hours number - Length of maintenance window range from 8 to 24 hours.
- start
Hour numberUtc - 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.
- 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.
- duration
Hours Number - Length of maintenance window range from 8 to 24 hours.
- start
Hour NumberUtc - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week
Day "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday" | "Everyday" | "Weekend" - Day of the week when a managed environment can be patched.
ScheduledEntryResponse, ScheduledEntryResponseArgs
- 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 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 string - Day of the week when a managed environment can be patched.
- duration
Hours Integer - Length of maintenance window range from 8 to 24 hours.
- start
Hour IntegerUtc - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week
Day String - Day of the week when a managed environment can be patched.
- duration
Hours number - Length of maintenance window range from 8 to 24 hours.
- start
Hour numberUtc - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week
Day 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.
- duration
Hours Number - Length of maintenance window range from 8 to 24 hours.
- start
Hour NumberUtc - Start hour after which managed environment maintenance can start from 0 to 23 hour.
- week
Day String - Day of the week when a managed environment can be patched.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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
- Everyday
- Everyday
- Weekend
- Weekend
- Week
Day Monday - Monday
- Week
Day Tuesday - Tuesday
- Week
Day Wednesday - Wednesday
- Week
Day Thursday - Thursday
- Week
Day Friday - Friday
- Week
Day Saturday - Saturday
- Week
Day Sunday - Sunday
- Week
Day Everyday - Everyday
- Week
Day Weekend - Weekend
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Sunday
- Sunday
- Everyday
- Everyday
- Weekend
- Weekend
- Monday
- Monday
- Tuesday
- Tuesday
- Wednesday
- Wednesday
- Thursday
- Thursday
- Friday
- Friday
- Saturday
- Saturday
- Sunday
- Sunday
- Everyday
- Everyday
- Weekend
- Weekend
- MONDAY
- Monday
- TUESDAY
- Tuesday
- WEDNESDAY
- Wednesday
- THURSDAY
- Thursday
- FRIDAY
- Friday
- SATURDAY
- Saturday
- SUNDAY
- Sunday
- EVERYDAY
- Everyday
- WEEKEND
- Weekend
- "Monday"
- Monday
- "Tuesday"
- Tuesday
- "Wednesday"
- Wednesday
- "Thursday"
- Thursday
- "Friday"
- Friday
- "Saturday"
- Saturday
- "Sunday"
- Sunday
- "Everyday"
- Everyday
- "Weekend"
- Weekend
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