-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Issue with az monitor data-collection rule create when updating existing DCR rule #29038
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.questionThe 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.questionThe 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
Describe the bug
Followed the guide to update an existing DCR. Modified JSON accordingly and attempted pushing using CLI in Cloud shell. It kept returning error
Related command
az monitor data-collection rule createErrors
The command claims DCR kind is different, and blank, while it indeed is not. It is further confirmed as using the API variant from the docs, with the same JSON file, worked with no issue.
Issue script & Debug output
N/A
Expected behavior
DCR is pushed successfully
Environment Summary
azure-cli 2.61.0
core 2.61.0
telemetry 1.1.0
Extensions:
ai-examples 0.2.5
ml 2.26.0
monitor-control-service 1.0.2
ssh 2.0.3
Dependencies:
msal 1.28.0
azure-mgmt-resource 23.1.1
Additional context
No response