Microsoft.App managedEnvironments/maintenanceConfigurations 2024-10-02-preview

Bicep resource definition

The managedEnvironments/maintenanceConfigurations resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.App/managedEnvironments/maintenanceConfigurations resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.App/managedEnvironments/maintenanceConfigurations@2024-10-02-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    scheduledEntries: [
      {
        durationHours: int
        startHourUtc: int
        weekDay: 'string'
      }
    ]
  }
}

Property values

Microsoft.App/managedEnvironments/maintenanceConfigurations

Name Description Value
name The resource name string

Constraints:
Pattern = ^[-\w\._\(\)]+$ (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: managedEnvironments
properties The resource-specific properties for this resource. ScheduledEntries

ScheduledEntries

Name Description Value
scheduledEntries List of maintenance schedules for a managed environment. ScheduledEntry[] (required)

ScheduledEntry

Name Description Value
durationHours Length of maintenance window range from 8 to 24 hours. int (required)
startHourUtc Start hour after which managed environment maintenance can start from 0 to 23 hour. int (required)
weekDay Day of the week when a managed environment can be patched. 'Friday'
'Monday'
'Saturday'
'Sunday'
'Thursday'
'Tuesday'
'Wednesday' (required)

ARM template resource definition

The managedEnvironments/maintenanceConfigurations resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.App/managedEnvironments/maintenanceConfigurations resource, add the following JSON to your template.

{
  "type": "Microsoft.App/managedEnvironments/maintenanceConfigurations",
  "apiVersion": "2024-10-02-preview",
  "name": "string",
  "properties": {
    "scheduledEntries": [
      {
        "durationHours": "int",
        "startHourUtc": "int",
        "weekDay": "string"
      }
    ]
  }
}

Property values

Microsoft.App/managedEnvironments/maintenanceConfigurations

Name Description Value
apiVersion The api version '2024-10-02-preview'
name The resource name string

Constraints:
Pattern = ^[-\w\._\(\)]+$ (required)
properties The resource-specific properties for this resource. ScheduledEntries
type The resource type 'Microsoft.App/managedEnvironments/maintenanceConfigurations'

ScheduledEntries

Name Description Value
scheduledEntries List of maintenance schedules for a managed environment. ScheduledEntry[] (required)

ScheduledEntry

Name Description Value
durationHours Length of maintenance window range from 8 to 24 hours. int (required)
startHourUtc Start hour after which managed environment maintenance can start from 0 to 23 hour. int (required)
weekDay Day of the week when a managed environment can be patched. 'Friday'
'Monday'
'Saturday'
'Sunday'
'Thursday'
'Tuesday'
'Wednesday' (required)

Terraform (AzAPI provider) resource definition

The managedEnvironments/maintenanceConfigurations resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.App/managedEnvironments/maintenanceConfigurations resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.App/managedEnvironments/maintenanceConfigurations@2024-10-02-preview"
  name = "string"
  body = jsonencode({
    properties = {
      scheduledEntries = [
        {
          durationHours = int
          startHourUtc = int
          weekDay = "string"
        }
      ]
    }
  })
}

Property values

Microsoft.App/managedEnvironments/maintenanceConfigurations

Name Description Value
name The resource name string

Constraints:
Pattern = ^[-\w\._\(\)]+$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: managedEnvironments
properties The resource-specific properties for this resource. ScheduledEntries
type The resource type "Microsoft.App/managedEnvironments/maintenanceConfigurations@2024-10-02-preview"

ScheduledEntries

Name Description Value
scheduledEntries List of maintenance schedules for a managed environment. ScheduledEntry[] (required)

ScheduledEntry

Name Description Value
durationHours Length of maintenance window range from 8 to 24 hours. int (required)
startHourUtc Start hour after which managed environment maintenance can start from 0 to 23 hour. int (required)
weekDay Day of the week when a managed environment can be patched. 'Friday'
'Monday'
'Saturday'
'Sunday'
'Thursday'
'Tuesday'
'Wednesday' (required)