The dataCollectionRuleAssociations resource type is an extension resource, which means you can apply it to another resource.
Use the scope
property on this resource to set the scope for this resource. See Set scope on extension resources in ARM templates.
The dataCollectionRuleAssociations resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.Insights/dataCollectionRuleAssociations resource, add the following JSON to your template.
{
"type": "Microsoft.Insights/dataCollectionRuleAssociations",
"apiVersion": "2022-06-01",
"name": "string",
"scope": "string",
"properties": {
"dataCollectionEndpointId": "string",
"dataCollectionRuleId": "string",
"description": "string"
}
}
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.Insights/dataCollectionRuleAssociations' |
apiVersion | The resource api version | '2022-06-01' |
name | The resource name | string (required) |
scope | Use when creating an extension resource at a scope that is different than the deployment scope. | Target resource For JSON, set the value to the full name of the resource to apply the extension resource to. |
properties | Resource properties. | DataCollectionRuleAssociationProxyOnlyResourceProper... |
Name | Description | Value |
---|---|---|
dataCollectionEndpointId | The resource ID of the data collection endpoint that is to be associated. | string |
dataCollectionRuleId | The resource ID of the data collection rule that is to be associated. | string |
description | Description of the association. | string |