configuration_assignments_for_resource_groups
Creates, updates, deletes, gets or lists a configuration_assignments_for_resource_groups
resource.
Overview
Name | configuration_assignments_for_resource_groups |
Type | Resource |
Id | azure.maintenance.configuration_assignments_for_resource_groups |
Fields
- vw_configuration_assignments_for_resource_groups
- configuration_assignments_for_resource_groups
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 |
resourceGroupName | 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, resourceGroupName, subscriptionId | Get configuration assignment for resource.. |
create_or_update | INSERT | configurationAssignmentName, resourceGroupName, subscriptionId | Register configuration for resource. |
delete | DELETE | configurationAssignmentName, resourceGroupName, subscriptionId | Unregister configuration for resource. |
update | UPDATE | configurationAssignmentName, resourceGroupName, subscriptionId | Register configuration for resource. |
SELECT
examples
Get configuration assignment for resource..
- vw_configuration_assignments_for_resource_groups
- configuration_assignments_for_resource_groups
SELECT
id,
name,
configurationAssignmentName,
filter,
location,
maintenance_configuration_id,
resourceGroupName,
resource_id,
subscriptionId,
type
FROM azure.maintenance.vw_configuration_assignments_for_resource_groups
WHERE configurationAssignmentName = '{{ configurationAssignmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
type
FROM azure.maintenance.configuration_assignments_for_resource_groups
WHERE configurationAssignmentName = '{{ configurationAssignmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new configuration_assignments_for_resource_groups
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.maintenance.configuration_assignments_for_resource_groups (
configurationAssignmentName,
resourceGroupName,
subscriptionId,
location,
properties
)
SELECT
'{{ configurationAssignmentName }}',
'{{ resourceGroupName }}',
'{{ 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
UPDATE
example
Updates a configuration_assignments_for_resource_groups
resource.
/*+ update */
UPDATE azure.maintenance.configuration_assignments_for_resource_groups
SET
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
configurationAssignmentName = '{{ configurationAssignmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified configuration_assignments_for_resource_groups
resource.
/*+ delete */
DELETE FROM azure.maintenance.configuration_assignments_for_resource_groups
WHERE configurationAssignmentName = '{{ configurationAssignmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';