Skip to main content

configuration_assignments

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

Overview

Nameconfiguration_assignments
TypeResource
Idazure.maintenance.configuration_assignments

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
providerNametextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
resourceTypetextfield 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, providerName, resourceGroupName, resourceName, resourceType, subscriptionIdGet configuration assignment for resource..
listSELECTproviderName, resourceGroupName, resourceName, resourceType, subscriptionIdList configurationAssignments for resource.
create_or_updateINSERTconfigurationAssignmentName, providerName, resourceGroupName, resourceName, resourceType, subscriptionIdRegister configuration for resource.
deleteDELETEconfigurationAssignmentName, providerName, resourceGroupName, resourceName, resourceType, subscriptionIdUnregister configuration for resource.

SELECT examples

List configurationAssignments for resource.

SELECT
id,
name,
configurationAssignmentName,
filter,
location,
maintenance_configuration_id,
providerName,
resourceGroupName,
resourceName,
resourceType,
resource_id,
subscriptionId,
type
FROM azure.maintenance.vw_configuration_assignments
WHERE providerName = '{{ providerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND resourceType = '{{ resourceType }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.maintenance.configuration_assignments (
configurationAssignmentName,
providerName,
resourceGroupName,
resourceName,
resourceType,
subscriptionId,
location,
properties
)
SELECT
'{{ configurationAssignmentName }}',
'{{ providerName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ resourceType }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ properties }}'
;

DELETE example

Deletes the specified configuration_assignments resource.

/*+ delete */
DELETE FROM azure.maintenance.configuration_assignments
WHERE configurationAssignmentName = '{{ configurationAssignmentName }}'
AND providerName = '{{ providerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND resourceType = '{{ resourceType }}'
AND subscriptionId = '{{ subscriptionId }}';