Skip to main content

configuration_assignments_for_subscriptions

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

Overview

Nameconfiguration_assignments_for_subscriptions
TypeResource
Idazure.maintenance.configuration_assignments_for_subscriptions

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
configurationAssignmentNametextfield from the properties object
filtertextfield from the properties object
locationtextLocation of the resource
maintenance_configuration_idtextfield from the properties object
resource_idtextfield from the properties object
subscriptionIdtextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTconfigurationAssignmentName, subscriptionIdGet configuration assignment for resource..
create_or_updateINSERTconfigurationAssignmentName, subscriptionIdRegister configuration for resource.
deleteDELETEconfigurationAssignmentName, subscriptionIdUnregister configuration for resource.
updateUPDATEconfigurationAssignmentName, subscriptionIdRegister configuration for resource.

SELECT examples

Get configuration assignment for resource..

SELECT
id,
name,
configurationAssignmentName,
filter,
location,
maintenance_configuration_id,
resource_id,
subscriptionId,
type
FROM azure.maintenance.vw_configuration_assignments_for_subscriptions
WHERE configurationAssignmentName = '{{ configurationAssignmentName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.maintenance.configuration_assignments_for_subscriptions (
configurationAssignmentName,
subscriptionId,
location,
properties
)
SELECT
'{{ configurationAssignmentName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a configuration_assignments_for_subscriptions resource.

/*+ update */
UPDATE azure.maintenance.configuration_assignments_for_subscriptions
SET
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
configurationAssignmentName = '{{ configurationAssignmentName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified configuration_assignments_for_subscriptions resource.

/*+ delete */
DELETE FROM azure.maintenance.configuration_assignments_for_subscriptions
WHERE configurationAssignmentName = '{{ configurationAssignmentName }}'
AND subscriptionId = '{{ subscriptionId }}';