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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
dataCollectionEndpointIdstringThe resource ID of the data collection endpoint that is to be associated.
dataCollectionRuleIdstringThe resource ID of the data collection rule that is to be associated.
descriptionstringDescription of the association.
etagstringResource entity tag (ETag).
metadataobjectMetadata about the resource.
provisioningStatestringThe resource provisioning state. Known values are: "Creating", "Updating", "Deleting", "Succeeded", "Canceled", and "Failed". (Creating, Updating, Deleting, Succeeded, Canceled, Failed)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_data_collection_endpointselectresource_group_name, data_collection_endpoint_name, subscription_idLists associations for the specified data collection endpoint. Lists associations for the specified data collection endpoint.
list_by_ruleselectresource_group_name, data_collection_rule_name, subscription_id$skipToken, $topLists associations for the specified data collection rule. Lists associations for the specified data collection rule.
getselectresource_uri, association_nameReturns the specified association. Returns the specified association.
list_by_resourceselectresource_uriLists associations for the specified resource. Lists associations for the specified resource.
createinsertresource_uri, association_nameCreates or updates an association. Creates or updates an association.
deletedeleteresource_uri, association_nameDeletes an association. Deletes an association.

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
association_namestringThe name of the association. The name is case insensitive. Required.
data_collection_endpoint_namestringThe name of the data collection endpoint. The name is case insensitive. Required.
data_collection_rule_namestringThe name of the data collection rule. The name is case insensitive. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
resource_uristringThe fully qualified Azure Resource manager identifier of the resource. Required.
subscription_idstring
$skipTokenstring(Optional) The continuation token for paginated responses. Default value is None.
$topinteger(Optional) The max number of items to return per page. Default value is None.

SELECT examples

Lists associations for the specified data collection endpoint. Lists associations for the specified data collection endpoint.

SELECT
id,
name,
dataCollectionEndpointId,
dataCollectionRuleId,
description,
etag,
metadata,
provisioningState,
systemData,
type
FROM azure.monitor.data_collection_rule_associations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND data_collection_endpoint_name = '{{ data_collection_endpoint_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates an association. Creates or updates an association.

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

DELETE examples

Deletes an association. Deletes an association.

DELETE FROM azure.monitor.data_collection_rule_associations
WHERE resource_uri = '{{ resource_uri }}' --required
AND association_name = '{{ association_name }}' --required
;