Skip to content

Data Source: azurermPublicMaintenanceConfigurations

Use this data source to access information about existing Public Maintenance Configurations.

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermPublicMaintenanceConfigurationsExisting =
  new azurerm.dataAzurermPublicMaintenanceConfigurations.DataAzurermPublicMaintenanceConfigurations(
    this,
    "existing",
    {
      location: "West Europe",
      recur_every: "Monday-Thursday",
      scope: "SQLManagedInstance",
    }
  );
new cdktf.TerraformOutput(this, "name", {
  value: `\${${dataAzurermPublicMaintenanceConfigurationsExisting.configs.fqn}[0].name}`,
});

Argument Reference

  • 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.

  • recurEvery - The recurring window to filter the list of Public Maintenance Configurations against. Possible values are mondayThursday and fridaySunday

Attributes Reference

  • 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.

  • maintenanceScope - The scope of the Public Maintenance Configuration.

  • timeZone - The time zone for the maintenance window.

  • recurEvery - The rate at which a maintenance window is expected to recur.


Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Public Maintenance Configuration.