Skip to main content

public_maintenance_configurations

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

Overview

Namepublic_maintenance_configurations
TypeResource
Idazure.maintenance.public_maintenance_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
extensionPropertiesobjectGets or sets extensionProperties of the maintenanceConfiguration.
installPatchesobjectThe input parameters to be passed to the patch run operation.
locationstringGets or sets location of the resource.
maintenanceScopestringGets or sets maintenanceScope of the configuration. Known values are: "Host", "Resource", "OSImage", "Extension", "InGuestPatch", "SQLDB", and "SQLManagedInstance". (Host, Resource, OSImage, Extension, InGuestPatch, SQLDB, SQLManagedInstance)
maintenanceWindowobjectDefinition of a MaintenanceWindow.
namespacestringGets or sets namespace of the resource.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectGets or sets tags of the resource.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
visibilitystringGets or sets the visibility of the configuration. The default value is 'Custom'. Known values are: "Custom" and "Public". (Custom, Public)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_name, subscription_idGet Public Maintenance Configuration record.
listselectsubscription_idGet Public Maintenance Configuration records.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_namestringThe name of the MaintenanceConfiguration. Required.
subscription_idstring

SELECT examples

Get Public Maintenance Configuration record.

SELECT
id,
name,
extensionProperties,
installPatches,
location,
maintenanceScope,
maintenanceWindow,
namespace,
systemData,
tags,
type,
visibility
FROM azure.maintenance.public_maintenance_configurations
WHERE resource_name = '{{ resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;