Skip to main content

maintenance_window_options

Creates, updates, deletes, gets or lists a maintenance_window_options resource.

Overview

Namemaintenance_window_options
TypeResource
Idazure.sql.maintenance_window_options

Fields

NameDatatypeDescription
allow_multiple_maintenance_windows_per_cycletextfield from the properties object
databaseNametextfield from the properties object
default_duration_in_minutestextfield from the properties object
is_enabledtextfield from the properties object
maintenanceWindowOptionsNametextfield from the properties object
maintenance_window_cyclestextfield from the properties object
min_cyclestextfield from the properties object
min_duration_in_minutestextfield from the properties object
resourceGroupNametextfield from the properties object
serverNametextfield from the properties object
subscriptionIdtextfield from the properties object
time_granularity_in_minutestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseName, maintenanceWindowOptionsName, resourceGroupName, serverName, subscriptionIdGets a list of available maintenance windows.

SELECT examples

Gets a list of available maintenance windows.

SELECT
allow_multiple_maintenance_windows_per_cycle,
databaseName,
default_duration_in_minutes,
is_enabled,
maintenanceWindowOptionsName,
maintenance_window_cycles,
min_cycles,
min_duration_in_minutes,
resourceGroupName,
serverName,
subscriptionId,
time_granularity_in_minutes
FROM azure.sql.vw_maintenance_window_options
WHERE databaseName = '{{ databaseName }}'
AND maintenanceWindowOptionsName = '{{ maintenanceWindowOptionsName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';