data_collection_rules
Creates, updates, deletes, gets or lists a data_collection_rules
resource.
Overview
Name | data_collection_rules |
Type | Resource |
Id | azure.monitor.data_collection_rules |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified ID of the resource. |
name | string | The name of the resource. |
etag | string | Resource entity tag (ETag). |
identity | object | Managed service identity of the resource. |
kind | string | The kind of the resource. |
location | string | The geo-location where the resource lives. |
properties | object | Resource properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
type | string | The type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | dataCollectionRuleName, resourceGroupName, subscriptionId | |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | |
list_by_subscription | SELECT | subscriptionId | |
create | INSERT | dataCollectionRuleName, resourceGroupName, subscriptionId, data__location | |
delete | DELETE | dataCollectionRuleName, resourceGroupName, subscriptionId | |
update | UPDATE | dataCollectionRuleName, resourceGroupName, subscriptionId |
SELECT
examples
SELECT
id,
name,
etag,
identity,
kind,
location,
properties,
systemData,
tags,
type
FROM azure.monitor.data_collection_rules
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new data_collection_rules
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.monitor.data_collection_rules (
dataCollectionRuleName,
resourceGroupName,
subscriptionId,
data__location,
properties,
location,
tags,
kind,
identity
)
SELECT
'{{ dataCollectionRuleName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ kind }}',
'{{ identity }}'
;
- name: your_resource_model_name
props:
- name: properties
value: string
- name: location
value: string
- name: tags
value: object
- name: kind
value: string
- name: identity
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: etag
value: string
- name: systemData
value: string
UPDATE
example
Updates a data_collection_rules
resource.
/*+ update */
UPDATE azure.monitor.data_collection_rules
SET
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
dataCollectionRuleName = '{{ dataCollectionRuleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified data_collection_rules
resource.
/*+ delete */
DELETE FROM azure.monitor.data_collection_rules
WHERE dataCollectionRuleName = '{{ dataCollectionRuleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';