Use this data source to access information about an existing Maintenance Configuration.
data "azurerm_maintenance_configuration" "existing" {
name = "example-mc"
resource_group_name = "example-resources"
}
output "id" {
value = azurerm_maintenance_configuration.existing.id
}
name
- Specifies the name of the Maintenance Configuration.
resource_group_name
- Specifies the name of the Resource Group where this Maintenance Configuration exists.
location
- The Azure location where the resource exists.
scope
- The scope of the Maintenance Configuration.
visibility
- The visibility of the Maintenance Configuration.
window
- A window
block as defined below.
install_patches
- An install_patches
block as defined below.
in_guest_user_patch_mode
- The in guest user patch mode.
properties
- The properties assigned to the resource.
tags
- A mapping of tags assigned to the resource.
A window
block exports the following:
start_date_time
- Effective start date of the maintenance window.
expiration_date_time
- Effective expiration date of the maintenance window.
duration
- The duration of the maintenance window.
time_zone
- The time zone for the maintenance window.
recur_every
The rate at which a maintenance window is expected to recur.
A install_patches
block supports:
linux
- A linux
block as defined below.
windows
- A windows
block as defined below.
reboot
- Possible reboot preference as defined by the user based on which it would be decided to reboot the machine or not after the patch operation is completed.
A linux
block supports:
classifications_to_include
- List of Classification category of patches to be patched.
package_names_mask_to_exclude
- List of package names to be excluded from patching.
package_names_mask_to_include
- List of package names to be included for patching.
A windows
block supports:
classifications_to_include
- List of Classification category of patches to be patched.
kb_numbers_to_exclude
List of KB numbers to be excluded from patching.
kb_numbers_to_include
List of KB numbers to be included for patching.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Maintenance Configuration.