Skip to main content

configurations

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

Overview

Nameconfigurations
TypeResource
Idazure.maintenance.configurations

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
extension_propertiestextfield from the properties object
install_patchestextfield from the properties object
locationtextGets or sets location of the resource
maintenance_scopetextfield from the properties object
maintenance_windowtextfield from the properties object
namespacetextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextGets or sets tags of the resource
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
visibilitytextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionId
listSELECTsubscriptionId
create_or_updateINSERTresourceGroupName, resourceName, subscriptionId
deleteDELETEresourceGroupName, resourceName, subscriptionId
updateUPDATEresourceGroupName, resourceName, subscriptionId

SELECT examples

SELECT
id,
name,
extension_properties,
install_patches,
location,
maintenance_scope,
maintenance_window,
namespace,
resourceGroupName,
resourceName,
subscriptionId,
tags,
type,
visibility
FROM azure.maintenance.vw_configurations
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new configurations resource.

/*+ create */
INSERT INTO azure.maintenance.configurations (
resourceGroupName,
resourceName,
subscriptionId,
location,
tags,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a configurations resource.

/*+ update */
UPDATE azure.maintenance.configurations
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified configurations resource.

/*+ delete */
DELETE FROM azure.maintenance.configurations
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';