-
Notifications
You must be signed in to change notification settings - Fork 3.4k
More input to use --endpoint-id with command "az monitor data-collection rule association create" #28338
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamMonitoraz monitoraz monitoract-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionThis issue needs attention from Azure service team or SDK teamThis issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamMonitoraz monitoraz monitoract-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionThis issue needs attention from Azure service team or SDK teamThis issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
As per the page, options are given to use --data-collection-rule-id & --data-collection-endpoint-id but its no where mentioned that both options can't be use together.
#az monitor data-collection rule association create --name "NAME_OF_DCR_RULE" --rule-id "DCR_RULE_ID" --resource "VM_RESOURCE_ID" with this command, you cannot use --data-collection-endpoint-id "endpoint_resource_id" . Error will be "Association name for resource to endpoint must be configurationAccessEndpoint"
Now, to resolve this error, you need to associate DCR and DCE separately. You cannot use it together.
So, to Associate VM with DCR,
#az monitor data-collection rule association create --name "NAME_OF_DCR_RULE" --rule-id "DCR_RULE_ID" --resource "VM_RESOURCE_ID"
Now, time to associate endpoint with the VM,
#az monitor data-collection rule association create --name "configurationAccessEndpoint" --resource "VM_RESOURCE_ID" --endpoint-id "endpoint_ID"