configuration_assignments
Creates, updates, deletes, gets or lists a configuration_assignments
resource.
Overview
Name | configuration_assignments |
Type | Resource |
Id | azure.maintenance.configuration_assignments |
Fields
- vw_configuration_assignments
- configuration_assignments
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | text | The name of the resource |
configurationAssignmentName | text | field from the properties object |
filter | text | field from the properties object |
location | text | Location of the resource |
maintenance_configuration_id | text | field from the properties object |
providerName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
resourceType | text | field from the properties object |
resource_id | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name | string | The name of the resource |
location | string | Location of the resource |
properties | object | Properties for configuration assignment |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | configurationAssignmentName, providerName, resourceGroupName, resourceName, resourceType, subscriptionId | Get configuration assignment for resource.. |
list | SELECT | providerName, resourceGroupName, resourceName, resourceType, subscriptionId | List configurationAssignments for resource. |
create_or_update | INSERT | configurationAssignmentName, providerName, resourceGroupName, resourceName, resourceType, subscriptionId | Register configuration for resource. |
delete | DELETE | configurationAssignmentName, providerName, resourceGroupName, resourceName, resourceType, subscriptionId | Unregister configuration for resource. |
SELECT
examples
List configurationAssignments for resource.
- vw_configuration_assignments
- configuration_assignments
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 }}';
SELECT
id,
name,
location,
properties,
type
FROM azure.maintenance.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.maintenance.configuration_assignments (
configurationAssignmentName,
providerName,
resourceGroupName,
resourceName,
resourceType,
subscriptionId,
location,
properties
)
SELECT
'{{ configurationAssignmentName }}',
'{{ providerName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ resourceType }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: properties
value:
- name: maintenanceConfigurationId
value: string
- name: resourceId
value: string
- name: filter
value:
- name: resourceTypes
value:
- string
- name: resourceGroups
value:
- string
- name: osTypes
value:
- string
- name: locations
value:
- string
- name: tagSettings
value:
- name: tags
value: object
- name: filterOperator
value: string
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 }}';