Skip to main content

configuration_assignments_parents

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

Overview

Nameconfiguration_assignments_parents
TypeResource
Idazure.maintenance.configuration_assignments_parents

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
resourceParentNametextfield from the properties object
resourceParentTypetextfield 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, resourceParentName, resourceParentType, resourceType, subscriptionIdGet configuration assignment for resource..
listSELECTproviderName, resourceGroupName, resourceName, resourceParentName, resourceParentType, resourceType, subscriptionIdList configurationAssignments for resource.
create_or_updateINSERTconfigurationAssignmentName, providerName, resourceGroupName, resourceName, resourceParentName, resourceParentType, resourceType, subscriptionIdRegister configuration for resource.
deleteDELETEconfigurationAssignmentName, providerName, resourceGroupName, resourceName, resourceParentName, resourceParentType, resourceType, subscriptionIdUnregister configuration for resource.

SELECT examples

List configurationAssignments for resource.

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

INSERT example

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

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

DELETE example

Deletes the specified configuration_assignments_parents resource.

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