Skip to main content

data_collection_rule_associations

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

Overview

Namedata_collection_rule_associations
TypeResource
Idazure.monitor.data_collection_rule_associations

Fields

The following fields are returned by SELECT queries:

Request completed successfully

NameDatatypeDescription
idstringFully qualified ID of the resource. (example: /subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule)
namestringThe name of the resource. (example: myCollectionRule)
etagstringResource entity tag (ETag).
propertiesobjectDefinition of association of a data collection rule with a monitored Azure resource.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource. (example: Microsoft.Insights/dataCollectionRules)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_ruleselectsubscriptionId, resourceGroupName, dataCollectionRuleName
list_by_data_collection_endpointselectsubscriptionId, resourceGroupName, dataCollectionEndpointName
getselectresourceUri, associationName
list_by_resourceselectresourceUri
createinsertresourceUri, associationName
deletedeleteresourceUri, associationName

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
associationNamestringThe name of the association. The name is case insensitive.
dataCollectionEndpointNamestringThe name of the data collection endpoint. The name is case insensitive.
dataCollectionRuleNamestringThe name of the data collection rule. The name is case insensitive.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
resourceUristringThe identifier of the resource.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Request completed successfully

SELECT
id,
name,
etag,
properties,
systemData,
type
FROM azure.monitor.data_collection_rule_associations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND dataCollectionRuleName = '{{ dataCollectionRuleName }}' -- required
;

INSERT examples

No description available.

INSERT INTO azure.monitor.data_collection_rule_associations (
data__properties,
resourceUri,
associationName
)
SELECT
'{{ properties }}',
'{{ resourceUri }}',
'{{ associationName }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

DELETE examples

No description available.

DELETE FROM azure.monitor.data_collection_rule_associations
WHERE resourceUri = '{{ resourceUri }}' --required
AND associationName = '{{ associationName }}' --required
;