Use this data source to access information about existing Public Maintenance Configurations.
data "azurerm_public_maintenance_configurations" "existing" {
location = "West Europe"
scope = "SQLManagedInstance"
recur_every = "Monday-Thursday"
}
output "name" {
value = data.azurerm_public_maintenance_configurations.existing.configs[0].name
}
location
- The Azure location to filter the list of Public Maintenance Configurations against.
scope
- The scope to filter the list of Public Maintenance Configurations against. Possible values are Extension
, Host
, InGuestPatch
, OSImage
, SQLDB
and SQLManagedInstance
.
recur_every
- The recurring window to filter the list of Public Maintenance Configurations against. Possible values are Monday-Thursday
and Friday-Sunday
configs
- A configs
block as defined below.A configs
block exports the following:
name
- The name of the Public Maintenance Configuration.
id
- The id of the Public Maintenance Configuration.
location
- The Azure location of the Public Maintenance Configuration.
description
- A description of the Public Maintenance Configuration.
duration
- The duration of the Public Maintenance Configuration window.
maintenance_scope
- The scope of the Public Maintenance Configuration.
time_zone
- The time zone for the maintenance window.
recur_every
- The rate at which a maintenance window is expected to recur.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Public Maintenance Configuration.